Currently we use NavigateTowards2dNodes to navigate between multiple waypoints. These waypoints can be static or positions of Nodes. Current implementation of NavigateTowards2dNodes sets NavigationAgent2D.TargetPosition every process tick:
This may be too expensive, especially for static waypoints. Maybe godot does cashing on its own. Or maybe it would be nice to implement our own solution with a cache over positions
Currently we use
NavigateTowards2dNodes
to navigate between multiple waypoints. These waypoints can be static or positions ofNodes
. Current implementation ofNavigateTowards2dNodes
setsNavigationAgent2D.TargetPosition
every process tick:This may be too expensive, especially for static waypoints. Maybe godot does cashing on its own. Or maybe it would be nice to implement our own solution with a cache over positions