Minor tweaks.
parent
3ce12e24be
commit
7b3a1976d7
|
@ -1,6 +1,9 @@
|
|||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
|
||||
# Addon ignores
|
||||
addons/.gdunit_update/
|
||||
|
||||
# Godot-specific ignores
|
||||
.import/
|
||||
export.cfg
|
||||
|
|
|
@ -54,8 +54,6 @@ func _physics_process(_delta: float) -> void:
|
|||
if navigation_active:
|
||||
var next_position:Vector3 = navigation_agent.get_next_path_position()
|
||||
|
||||
print("distance to target: %s" % navigation_agent.distance_to_target())
|
||||
|
||||
if navigation_agent.is_target_reached():
|
||||
print ("Target reached. Distance: %s" % navigation_agent.distance_to_target())
|
||||
navigation_active = false
|
||||
|
|
|
@ -70,6 +70,7 @@ unique_name_in_owner = true
|
|||
path_desired_distance = 0.1
|
||||
target_desired_distance = 0.1
|
||||
simplify_path = true
|
||||
radius = 0.25
|
||||
debug_enabled = true
|
||||
|
||||
[connection signal="body_entered" from="PlayerDetection" to="." method="_on_player_detection_body_entered"]
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue