change move_target_indicator.global_position to nav_agent.get_final_position()
This commit is contained in:
parent
e999c0002d
commit
4a48ba5706
@ -83,7 +83,7 @@ func navigate(to: Vector3, moving: bool = false) -> void:
|
||||
_is_moving = moving
|
||||
nav_agent.set_target_position(to)
|
||||
if _is_moving:
|
||||
move_target_indicator.global_position = nav_agent.target_position
|
||||
move_target_indicator.global_position = nav_agent.get_final_position()
|
||||
|
||||
|
||||
func _interact(with: Interactable) -> void:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user