Skip to content

Commit d026082

Browse files
authored
Merge pull request godotengine#7511 from smix8/navagent_velocity_4.x
Update NavigationAgent velocity description
2 parents 0dc97c5 + 7e018df commit d026082

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/navigation/navigation_using_navigationagents.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ The velocity_computed signal of the NavigationAgent node must be connected to re
9898

9999
.. image:: img/agent_safevelocity_signal.png
100100

101-
In order to trigger the avoidance velocity calculation, the current velocity of the agent's parent node must be set with ``set_velocity()`` on the NavigationAgent node in ``_physics_process()``.
101+
Use ``set_velocity()`` on the NavigationAgent node in ``_physics_process()`` to update the agent with the current velocity of the agent's parent node.
102102

103-
After a short wait for processing the avoidance (still in the same frame) the ``safe_velocity`` vector will be received with the signal.
103+
While avoidance is enabled on the agent the ``safe_velocity`` vector will be received with the velocity_computed signal every physics frame.
104104
This velocity vector should be used to move the NavigationAgent's parent node in order to avoidance collision with other avoidance using agents or avoidance obstacles.
105105

106106
.. note::

0 commit comments

Comments
 (0)