le pathfinder emène exactement là où on a cliqué
This commit is contained in:
@@ -77,7 +77,7 @@ func _process(delta: float) -> void:
|
||||
controled.moveFeetTo(world.to_global(world.map_to_local(toFollow.front())));
|
||||
else:
|
||||
var distance_to_goal = abs(destination - my_global_position)
|
||||
if distance_to_goal>Vector2(3, 3):
|
||||
if distance_to_goal.x > 3 or distance_to_goal.y > 3:
|
||||
controled.moveFeetTo(destination)
|
||||
else:
|
||||
destination = Vector2.INF
|
||||
|
||||
@@ -89,4 +89,6 @@ textures/canvas_textures/default_texture_filter=0
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
textures/vram_compression/import_etc2_astc=true
|
||||
textures/lossless_compression/force_png=true
|
||||
textures/default_filters/anisotropic_filtering_level=0
|
||||
anti_aliasing/screen_space_roughness_limiter/enabled=false
|
||||
|
||||
Reference in New Issue
Block a user