github_url: | hide |
---|
Inherits: :ref:`Spatial<class_Spatial>` < :ref:`Node<class_Node>` < :ref:`Object<class_Object>`
Mesh-based navigation and pathfinding node.
Provides navigation and pathfinding within a collection of :ref:`NavigationMesh<class_NavigationMesh>`es. These will be automatically collected from child :ref:`NavigationRegion<class_NavigationRegion>` nodes. In addition to basic pathfinding, this class also assists with aligning navigation agents with the meshes they are navigating on.
Default | 0.3 |
Setter | set_cell_size(value) |
Getter | get_cell_size() |
Default | 5.0 |
Setter | set_edge_connection_margin(value) |
Getter | get_edge_connection_margin() |
Default | Vector3( 0, 1, 0 ) |
Setter | set_up_vector(value) |
Getter | get_up_vector() |
Defines which direction is up. By default, this is (0, 1, 0)
, which is the world's "up" direction.
Returns the point closest to the provided to_point
on the navigation mesh surface.
Returns the normal for the point returned by :ref:`get_closest_point<class_Navigation_method_get_closest_point>`.
Returns the owner region RID for the point returned by :ref:`get_closest_point<class_Navigation_method_get_closest_point>`.
Returns the closest point between the navigation surface and the segment.
Returns the path between two given points. Points are in local coordinate space. If optimize
is true
(the default), the agent properties associated with each :ref:`NavigationMesh<class_NavigationMesh>` (radius, height, etc.) are considered in the path calculation, otherwise they are ignored.