tutorials/navigation/navigation_introduction_2d #222
Replies: 2 comments
-
I've found that, referring to NavigationAgent2D, you can't set target_position and then call get_next_path_position() in the same _physics_process() call. If you do want to set the target_position and call get_next_path_position() in the same frame (like say if the target_position is constantly changing), set target_position in a _process() call, and call get_next_path_position() in a _physics_process() call |
Beta Was this translation helpful? Give feedback.
0 replies
-
Video Example |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
tutorials/navigation/navigation_introduction_2d
Godot provides multiple objects, classes and servers to facilitate grid-based or mesh-based navigation and pathfinding for 2D and 3D games. The following section provides a quick overview over all ...
https://docs.godotengine.org/en/stable/tutorials/navigation/navigation_introduction_2d.html
Beta Was this translation helpful? Give feedback.
All reactions