Minor tweaks.

main
Martin Felis 2024-12-28 15:17:19 +01:00
parent 3ce12e24be
commit 7b3a1976d7
4 changed files with 11 additions and 9 deletions

3
.gitignore vendored
View File

@ -1,6 +1,9 @@
# Godot 4+ specific ignores # Godot 4+ specific ignores
.godot/ .godot/
# Addon ignores
addons/.gdunit_update/
# Godot-specific ignores # Godot-specific ignores
.import/ .import/
export.cfg export.cfg

View File

@ -54,8 +54,6 @@ func _physics_process(_delta: float) -> void:
if navigation_active: if navigation_active:
var next_position:Vector3 = navigation_agent.get_next_path_position() 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(): if navigation_agent.is_target_reached():
print ("Target reached. Distance: %s" % navigation_agent.distance_to_target()) print ("Target reached. Distance: %s" % navigation_agent.distance_to_target())
navigation_active = false navigation_active = false

View File

@ -70,6 +70,7 @@ unique_name_in_owner = true
path_desired_distance = 0.1 path_desired_distance = 0.1
target_desired_distance = 0.1 target_desired_distance = 0.1
simplify_path = true simplify_path = true
radius = 0.25
debug_enabled = true debug_enabled = true
[connection signal="body_entered" from="PlayerDetection" to="." method="_on_player_detection_body_entered"] [connection signal="body_entered" from="PlayerDetection" to="." method="_on_player_detection_body_entered"]

File diff suppressed because one or more lines are too long