From 7e018df8561fcdfdbb5b5e0d01a6ffa90471e764 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Tue, 13 Jun 2023 22:35:01 +0200 Subject: [PATCH] Update NavigationAgent velocity description Update NavigationAgent velocity description. --- tutorials/navigation/navigation_using_navigationagents.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/navigation/navigation_using_navigationagents.rst b/tutorials/navigation/navigation_using_navigationagents.rst index b14a288b81c..6044e0fce73 100644 --- a/tutorials/navigation/navigation_using_navigationagents.rst +++ b/tutorials/navigation/navigation_using_navigationagents.rst @@ -98,9 +98,9 @@ The velocity_computed signal of the NavigationAgent node must be connected to re .. image:: img/agent_safevelocity_signal.png -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()``. +Use ``set_velocity()`` on the NavigationAgent node in ``_physics_process()`` to update the agent with the current velocity of the agent's parent node. -After a short wait for processing the avoidance (still in the same frame) the ``safe_velocity`` vector will be received with the signal. +While avoidance is enabled on the agent the ``safe_velocity`` vector will be received with the velocity_computed signal every physics frame. 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. .. note::