minor tweaks

This commit is contained in:
derek
2024-08-08 15:14:15 -05:00
parent 5b618f1ab8
commit b140e59ddd
9 changed files with 37 additions and 32 deletions

View File

@@ -35,4 +35,5 @@ func _process(delta):
i.hive_velocity = (next_nav_point - i.global_transform.origin).normalized() * i.SPEED
elif i.player_in_view != true and i.player_last_seen != null:
i.nav_agent.set_target_position(i.player_last_seen)
var next_nav_point = i.nav_agent.get_next_path_position()
i.hive_velocity = (next_nav_point - i.global_transform.origin).normalized() * i.SPEED