2
0

class_navigationagent2d.rst 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.5/doc/classes/NavigationAgent2D.xml.
  6. .. _class_NavigationAgent2D:
  7. NavigationAgent2D
  8. =================
  9. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. 2D agent used in navigation for collision avoidance.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 2D agent that is used in navigation to reach a location while avoiding static and dynamic obstacles. The dynamic obstacles are avoided using RVO (Reciprocal Velocity Obstacles) collision avoidance. The agent needs navigation data to work correctly. By default this node will register to the default :ref:`World2D<class_World2D>` navigation map. If this node is a child of a :ref:`Navigation2D<class_Navigation2D>` node it will register to the navigation map of the navigation node or the function :ref:`set_navigation<class_NavigationAgent2D_method_set_navigation>` can be used to set the navigation node directly. **NavigationAgent2D** is physics safe.
  15. \ **Note:** After :ref:`set_target_location<class_NavigationAgent2D_method_set_target_location>` is used it is required to use the :ref:`get_next_location<class_NavigationAgent2D_method_get_next_location>` function once every physics frame to update the internal path logic of the NavigationAgent. The returned vector position from this function should be used as the next movement position for the agent's parent Node.
  16. \ **Note:** By default, the expensive calculations for avoidance are done in a thread. In HTML5 exports without thread support, they will be done on the main thread, which can lead to performance issues.
  17. .. rst-class:: classref-reftable-group
  18. Properties
  19. ----------
  20. .. table::
  21. :widths: auto
  22. +---------------------------+------------------------------------------------------------------------------------------+-----------+
  23. | :ref:`bool<class_bool>` | :ref:`avoidance_enabled<class_NavigationAgent2D_property_avoidance_enabled>` | ``false`` |
  24. +---------------------------+------------------------------------------------------------------------------------------+-----------+
  25. | :ref:`int<class_int>` | :ref:`max_neighbors<class_NavigationAgent2D_property_max_neighbors>` | ``10`` |
  26. +---------------------------+------------------------------------------------------------------------------------------+-----------+
  27. | :ref:`float<class_float>` | :ref:`max_speed<class_NavigationAgent2D_property_max_speed>` | ``200.0`` |
  28. +---------------------------+------------------------------------------------------------------------------------------+-----------+
  29. | :ref:`int<class_int>` | :ref:`navigation_layers<class_NavigationAgent2D_property_navigation_layers>` | ``1`` |
  30. +---------------------------+------------------------------------------------------------------------------------------+-----------+
  31. | :ref:`float<class_float>` | :ref:`neighbor_dist<class_NavigationAgent2D_property_neighbor_dist>` | ``500.0`` |
  32. +---------------------------+------------------------------------------------------------------------------------------+-----------+
  33. | :ref:`float<class_float>` | :ref:`path_desired_distance<class_NavigationAgent2D_property_path_desired_distance>` | ``1.0`` |
  34. +---------------------------+------------------------------------------------------------------------------------------+-----------+
  35. | :ref:`float<class_float>` | :ref:`path_max_distance<class_NavigationAgent2D_property_path_max_distance>` | ``3.0`` |
  36. +---------------------------+------------------------------------------------------------------------------------------+-----------+
  37. | :ref:`float<class_float>` | :ref:`radius<class_NavigationAgent2D_property_radius>` | ``10.0`` |
  38. +---------------------------+------------------------------------------------------------------------------------------+-----------+
  39. | :ref:`float<class_float>` | :ref:`target_desired_distance<class_NavigationAgent2D_property_target_desired_distance>` | ``1.0`` |
  40. +---------------------------+------------------------------------------------------------------------------------------+-----------+
  41. | :ref:`float<class_float>` | :ref:`time_horizon<class_NavigationAgent2D_property_time_horizon>` | ``20.0`` |
  42. +---------------------------+------------------------------------------------------------------------------------------+-----------+
  43. .. rst-class:: classref-reftable-group
  44. Methods
  45. -------
  46. .. table::
  47. :widths: auto
  48. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`float<class_float>` | :ref:`distance_to_target<class_NavigationAgent2D_method_distance_to_target>` **(** **)** |const| |
  50. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`Vector2<class_Vector2>` | :ref:`get_final_location<class_NavigationAgent2D_method_get_final_location>` **(** **)** |
  52. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`get_nav_path<class_NavigationAgent2D_method_get_nav_path>` **(** **)** |const| |
  54. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`int<class_int>` | :ref:`get_nav_path_index<class_NavigationAgent2D_method_get_nav_path_index>` **(** **)** |const| |
  56. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`Node<class_Node>` | :ref:`get_navigation<class_NavigationAgent2D_method_get_navigation>` **(** **)** |const| |
  58. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`RID<class_RID>` | :ref:`get_navigation_map<class_NavigationAgent2D_method_get_navigation_map>` **(** **)** |const| |
  60. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`Vector2<class_Vector2>` | :ref:`get_next_location<class_NavigationAgent2D_method_get_next_location>` **(** **)** |
  62. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`RID<class_RID>` | :ref:`get_rid<class_NavigationAgent2D_method_get_rid>` **(** **)** |const| |
  64. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  65. | :ref:`Vector2<class_Vector2>` | :ref:`get_target_location<class_NavigationAgent2D_method_get_target_location>` **(** **)** |const| |
  66. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  67. | :ref:`bool<class_bool>` | :ref:`is_navigation_finished<class_NavigationAgent2D_method_is_navigation_finished>` **(** **)** |
  68. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  69. | :ref:`bool<class_bool>` | :ref:`is_target_reachable<class_NavigationAgent2D_method_is_target_reachable>` **(** **)** |
  70. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  71. | :ref:`bool<class_bool>` | :ref:`is_target_reached<class_NavigationAgent2D_method_is_target_reached>` **(** **)** |const| |
  72. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  73. | void | :ref:`set_navigation<class_NavigationAgent2D_method_set_navigation>` **(** :ref:`Node<class_Node>` navigation **)** |
  74. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  75. | void | :ref:`set_navigation_map<class_NavigationAgent2D_method_set_navigation_map>` **(** :ref:`RID<class_RID>` navigation_map **)** |
  76. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  77. | void | :ref:`set_target_location<class_NavigationAgent2D_method_set_target_location>` **(** :ref:`Vector2<class_Vector2>` location **)** |
  78. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  79. | void | :ref:`set_velocity<class_NavigationAgent2D_method_set_velocity>` **(** :ref:`Vector2<class_Vector2>` velocity **)** |
  80. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
  81. .. rst-class:: classref-section-separator
  82. ----
  83. .. rst-class:: classref-descriptions-group
  84. Signals
  85. -------
  86. .. _class_NavigationAgent2D_signal_navigation_finished:
  87. .. rst-class:: classref-signal
  88. **navigation_finished** **(** **)**
  89. Notifies when the final location is reached.
  90. .. rst-class:: classref-item-separator
  91. ----
  92. .. _class_NavigationAgent2D_signal_path_changed:
  93. .. rst-class:: classref-signal
  94. **path_changed** **(** **)**
  95. Notifies when the navigation path changes. This can be triggered by the navigation system or by the user changing the path.
  96. .. rst-class:: classref-item-separator
  97. ----
  98. .. _class_NavigationAgent2D_signal_target_reached:
  99. .. rst-class:: classref-signal
  100. **target_reached** **(** **)**
  101. Notifies when the player-defined target, set with :ref:`set_target_location<class_NavigationAgent2D_method_set_target_location>`, is reached.
  102. .. rst-class:: classref-item-separator
  103. ----
  104. .. _class_NavigationAgent2D_signal_velocity_computed:
  105. .. rst-class:: classref-signal
  106. **velocity_computed** **(** :ref:`Vector2<class_Vector2>` safe_velocity **)**
  107. Notifies when the collision avoidance velocity is calculated after a call to :ref:`set_velocity<class_NavigationAgent2D_method_set_velocity>`. Only emitted when :ref:`avoidance_enabled<class_NavigationAgent2D_property_avoidance_enabled>` is true.
  108. .. rst-class:: classref-section-separator
  109. ----
  110. .. rst-class:: classref-descriptions-group
  111. Property Descriptions
  112. ---------------------
  113. .. _class_NavigationAgent2D_property_avoidance_enabled:
  114. .. rst-class:: classref-property
  115. :ref:`bool<class_bool>` **avoidance_enabled** = ``false``
  116. .. rst-class:: classref-property-setget
  117. - void **set_avoidance_enabled** **(** :ref:`bool<class_bool>` value **)**
  118. - :ref:`bool<class_bool>` **get_avoidance_enabled** **(** **)**
  119. If ``true`` the agent is registered for an RVO avoidance callback on the :ref:`Navigation2DServer<class_Navigation2DServer>`. When :ref:`set_velocity<class_NavigationAgent2D_method_set_velocity>` is used and the processing is completed a ``safe_velocity`` Vector2 is received with a signal connection to :ref:`velocity_computed<class_NavigationAgent2D_signal_velocity_computed>`. Avoidance processing with many registered agents has a significant performance cost and should only be enabled on agents that currently require it.
  120. .. rst-class:: classref-item-separator
  121. ----
  122. .. _class_NavigationAgent2D_property_max_neighbors:
  123. .. rst-class:: classref-property
  124. :ref:`int<class_int>` **max_neighbors** = ``10``
  125. .. rst-class:: classref-property-setget
  126. - void **set_max_neighbors** **(** :ref:`int<class_int>` value **)**
  127. - :ref:`int<class_int>` **get_max_neighbors** **(** **)**
  128. The maximum number of neighbors for the agent to consider.
  129. .. rst-class:: classref-item-separator
  130. ----
  131. .. _class_NavigationAgent2D_property_max_speed:
  132. .. rst-class:: classref-property
  133. :ref:`float<class_float>` **max_speed** = ``200.0``
  134. .. rst-class:: classref-property-setget
  135. - void **set_max_speed** **(** :ref:`float<class_float>` value **)**
  136. - :ref:`float<class_float>` **get_max_speed** **(** **)**
  137. The maximum speed that an agent can move.
  138. .. rst-class:: classref-item-separator
  139. ----
  140. .. _class_NavigationAgent2D_property_navigation_layers:
  141. .. rst-class:: classref-property
  142. :ref:`int<class_int>` **navigation_layers** = ``1``
  143. .. rst-class:: classref-property-setget
  144. - void **set_navigation_layers** **(** :ref:`int<class_int>` value **)**
  145. - :ref:`int<class_int>` **get_navigation_layers** **(** **)**
  146. A bitfield determining all navigation map layers the **NavigationAgent2D** belongs to. On path requests the agent will ignore navmeshes without at least one matching layer.
  147. .. rst-class:: classref-item-separator
  148. ----
  149. .. _class_NavigationAgent2D_property_neighbor_dist:
  150. .. rst-class:: classref-property
  151. :ref:`float<class_float>` **neighbor_dist** = ``500.0``
  152. .. rst-class:: classref-property-setget
  153. - void **set_neighbor_dist** **(** :ref:`float<class_float>` value **)**
  154. - :ref:`float<class_float>` **get_neighbor_dist** **(** **)**
  155. The distance to search for other agents.
  156. .. rst-class:: classref-item-separator
  157. ----
  158. .. _class_NavigationAgent2D_property_path_desired_distance:
  159. .. rst-class:: classref-property
  160. :ref:`float<class_float>` **path_desired_distance** = ``1.0``
  161. .. rst-class:: classref-property-setget
  162. - void **set_path_desired_distance** **(** :ref:`float<class_float>` value **)**
  163. - :ref:`float<class_float>` **get_path_desired_distance** **(** **)**
  164. The distance threshold before a path point is considered to be reached. This will allow an agent to not have to hit a path point on the path exactly, but in the area. If this value is set to high the NavigationAgent will skip points on the path which can lead to leaving the navigation mesh. If this value is set to low the NavigationAgent will be stuck in a repath loop cause it will constantly overshoot or undershoot the distance to the next point on each physics frame update.
  165. .. rst-class:: classref-item-separator
  166. ----
  167. .. _class_NavigationAgent2D_property_path_max_distance:
  168. .. rst-class:: classref-property
  169. :ref:`float<class_float>` **path_max_distance** = ``3.0``
  170. .. rst-class:: classref-property-setget
  171. - void **set_path_max_distance** **(** :ref:`float<class_float>` value **)**
  172. - :ref:`float<class_float>` **get_path_max_distance** **(** **)**
  173. The maximum distance the agent is allowed away from the ideal path to the final location. This can happen due to trying to avoid collisions. When the maximum distance is exceeded, it recalculates the ideal path.
  174. .. rst-class:: classref-item-separator
  175. ----
  176. .. _class_NavigationAgent2D_property_radius:
  177. .. rst-class:: classref-property
  178. :ref:`float<class_float>` **radius** = ``10.0``
  179. .. rst-class:: classref-property-setget
  180. - void **set_radius** **(** :ref:`float<class_float>` value **)**
  181. - :ref:`float<class_float>` **get_radius** **(** **)**
  182. The radius of the avoidance agent. This is the "body" of the avoidance agent and not the avoidance maneuver starting radius (which is controlled by :ref:`neighbor_dist<class_NavigationAgent2D_property_neighbor_dist>`).
  183. Does not affect normal pathfinding.
  184. .. rst-class:: classref-item-separator
  185. ----
  186. .. _class_NavigationAgent2D_property_target_desired_distance:
  187. .. rst-class:: classref-property
  188. :ref:`float<class_float>` **target_desired_distance** = ``1.0``
  189. .. rst-class:: classref-property-setget
  190. - void **set_target_desired_distance** **(** :ref:`float<class_float>` value **)**
  191. - :ref:`float<class_float>` **get_target_desired_distance** **(** **)**
  192. The distance threshold before the final target point is considered to be reached. This will allow an agent to not have to hit the point of the final target exactly, but only the area. If this value is set to low the NavigationAgent will be stuck in a repath loop cause it will constantly overshoot or undershoot the distance to the final target point on each physics frame update.
  193. .. rst-class:: classref-item-separator
  194. ----
  195. .. _class_NavigationAgent2D_property_time_horizon:
  196. .. rst-class:: classref-property
  197. :ref:`float<class_float>` **time_horizon** = ``20.0``
  198. .. rst-class:: classref-property-setget
  199. - void **set_time_horizon** **(** :ref:`float<class_float>` value **)**
  200. - :ref:`float<class_float>` **get_time_horizon** **(** **)**
  201. The minimal amount of time for which this agent's velocities, that are computed with the collision avoidance algorithm, are safe with respect to other agents. The larger the number, the sooner the agent will respond to other agents, but the less freedom in choosing its velocities. Must be positive.
  202. .. rst-class:: classref-section-separator
  203. ----
  204. .. rst-class:: classref-descriptions-group
  205. Method Descriptions
  206. -------------------
  207. .. _class_NavigationAgent2D_method_distance_to_target:
  208. .. rst-class:: classref-method
  209. :ref:`float<class_float>` **distance_to_target** **(** **)** |const|
  210. Returns the distance to the target location, using the agent's global position. The user must set the target location with :ref:`set_target_location<class_NavigationAgent2D_method_set_target_location>` in order for this to be accurate.
  211. .. rst-class:: classref-item-separator
  212. ----
  213. .. _class_NavigationAgent2D_method_get_final_location:
  214. .. rst-class:: classref-method
  215. :ref:`Vector2<class_Vector2>` **get_final_location** **(** **)**
  216. Returns the reachable final location in global coordinates. This can change if the navigation path is altered in any way. Because of this, it would be best to check this each frame.
  217. .. rst-class:: classref-item-separator
  218. ----
  219. .. _class_NavigationAgent2D_method_get_nav_path:
  220. .. rst-class:: classref-method
  221. :ref:`PoolVector2Array<class_PoolVector2Array>` **get_nav_path** **(** **)** |const|
  222. Returns this agent's current path from start to finish in global coordinates. The path only updates when the target location is changed or the agent requires a repath. The path array is not intended to be used in direct path movement as the agent has its own internal path logic that would get corrupted by changing the path array manually. Use the intended :ref:`get_next_location<class_NavigationAgent2D_method_get_next_location>` once every physics frame to receive the next path point for the agents movement as this function also updates the internal path logic.
  223. .. rst-class:: classref-item-separator
  224. ----
  225. .. _class_NavigationAgent2D_method_get_nav_path_index:
  226. .. rst-class:: classref-method
  227. :ref:`int<class_int>` **get_nav_path_index** **(** **)** |const|
  228. Returns which index the agent is currently on in the navigation path's :ref:`PoolVector2Array<class_PoolVector2Array>`.
  229. .. rst-class:: classref-item-separator
  230. ----
  231. .. _class_NavigationAgent2D_method_get_navigation:
  232. .. rst-class:: classref-method
  233. :ref:`Node<class_Node>` **get_navigation** **(** **)** |const|
  234. Returns the :ref:`Navigation2D<class_Navigation2D>` node that the agent is using for its navigation system.
  235. .. rst-class:: classref-item-separator
  236. ----
  237. .. _class_NavigationAgent2D_method_get_navigation_map:
  238. .. rst-class:: classref-method
  239. :ref:`RID<class_RID>` **get_navigation_map** **(** **)** |const|
  240. Returns the :ref:`RID<class_RID>` of the navigation map for this NavigationAgent node. This function returns always the map set on the NavigationAgent node and not the map of the abstract agent on the NavigationServer. If the agent map is changed directly with the NavigationServer API the NavigationAgent node will not be aware of the map change. Use :ref:`set_navigation_map<class_NavigationAgent2D_method_set_navigation_map>` to change the navigation map for the NavigationAgent and also update the agent on the NavigationServer.
  241. .. rst-class:: classref-item-separator
  242. ----
  243. .. _class_NavigationAgent2D_method_get_next_location:
  244. .. rst-class:: classref-method
  245. :ref:`Vector2<class_Vector2>` **get_next_location** **(** **)**
  246. Returns the next location in global coordinates that can be moved to, making sure that there are no static objects in the way. If the agent does not have a navigation path, it will return the position of the agent's parent. The use of this function once every physics frame is required to update the internal path logic of the NavigationAgent.
  247. .. rst-class:: classref-item-separator
  248. ----
  249. .. _class_NavigationAgent2D_method_get_rid:
  250. .. rst-class:: classref-method
  251. :ref:`RID<class_RID>` **get_rid** **(** **)** |const|
  252. Returns the :ref:`RID<class_RID>` of this agent on the :ref:`Navigation2DServer<class_Navigation2DServer>`.
  253. .. rst-class:: classref-item-separator
  254. ----
  255. .. _class_NavigationAgent2D_method_get_target_location:
  256. .. rst-class:: classref-method
  257. :ref:`Vector2<class_Vector2>` **get_target_location** **(** **)** |const|
  258. Returns the user-defined target location (set with :ref:`set_target_location<class_NavigationAgent2D_method_set_target_location>`).
  259. .. rst-class:: classref-item-separator
  260. ----
  261. .. _class_NavigationAgent2D_method_is_navigation_finished:
  262. .. rst-class:: classref-method
  263. :ref:`bool<class_bool>` **is_navigation_finished** **(** **)**
  264. Returns ``true`` if the navigation path's final location has been reached.
  265. .. rst-class:: classref-item-separator
  266. ----
  267. .. _class_NavigationAgent2D_method_is_target_reachable:
  268. .. rst-class:: classref-method
  269. :ref:`bool<class_bool>` **is_target_reachable** **(** **)**
  270. Returns ``true`` if the target location is reachable. The target location is set using :ref:`set_target_location<class_NavigationAgent2D_method_set_target_location>`.
  271. .. rst-class:: classref-item-separator
  272. ----
  273. .. _class_NavigationAgent2D_method_is_target_reached:
  274. .. rst-class:: classref-method
  275. :ref:`bool<class_bool>` **is_target_reached** **(** **)** |const|
  276. Returns ``true`` if the target location is reached. The target location is set using :ref:`set_target_location<class_NavigationAgent2D_method_set_target_location>`. It may not always be possible to reach the target location. It should always be possible to reach the final location though. See :ref:`get_final_location<class_NavigationAgent2D_method_get_final_location>`.
  277. .. rst-class:: classref-item-separator
  278. ----
  279. .. _class_NavigationAgent2D_method_set_navigation:
  280. .. rst-class:: classref-method
  281. void **set_navigation** **(** :ref:`Node<class_Node>` navigation **)**
  282. Sets the :ref:`Navigation2D<class_Navigation2D>` node used by the agent. Useful when you don't want to make the agent a child of a :ref:`Navigation2D<class_Navigation2D>` node.
  283. .. rst-class:: classref-item-separator
  284. ----
  285. .. _class_NavigationAgent2D_method_set_navigation_map:
  286. .. rst-class:: classref-method
  287. void **set_navigation_map** **(** :ref:`RID<class_RID>` navigation_map **)**
  288. Sets the :ref:`RID<class_RID>` of the navigation map this NavigationAgent node should use and also updates the ``agent`` on the NavigationServer.
  289. .. rst-class:: classref-item-separator
  290. ----
  291. .. _class_NavigationAgent2D_method_set_target_location:
  292. .. rst-class:: classref-method
  293. void **set_target_location** **(** :ref:`Vector2<class_Vector2>` location **)**
  294. Sets the user desired final location. This will clear the current navigation path.
  295. .. rst-class:: classref-item-separator
  296. ----
  297. .. _class_NavigationAgent2D_method_set_velocity:
  298. .. rst-class:: classref-method
  299. void **set_velocity** **(** :ref:`Vector2<class_Vector2>` velocity **)**
  300. Sends the passed in velocity to the collision avoidance algorithm. It will adjust the velocity to avoid collisions. Once the adjustment to the velocity is complete, it will emit the :ref:`velocity_computed<class_NavigationAgent2D_signal_velocity_computed>` signal.
  301. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  302. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  303. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  304. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`