Skip to main content

NavigationPathQueryResult3D

Experimental: This class may be changed or removed in future versions.

Inherits: RefCounted < Object

Represents the result of a 3D pathfinding query.

Description

This class stores the result of a 3D navigation path query from the NavigationServer3D.

Tutorials

Properties

PackedVector3ArraypathPackedVector3Array()
floatpath_length0.0
PackedInt64Arraypath_owner_idsPackedInt64Array()
Array[RID]path_rids[]
PackedInt32Arraypath_typesPackedInt32Array()

Methods

voidreset\ (\ )

Enumerations

enum PathSegmentType: 🔗

PathSegmentType PATH_SEGMENT_TYPE_REGION = 0

This segment of the path goes through a region.

PathSegmentType PATH_SEGMENT_TYPE_LINK = 1

This segment of the path goes through a link.


Property Descriptions

PackedVector3Array path = PackedVector3Array() 🔗

The resulting path array from the navigation query. All path array positions are in global coordinates. Without customized query parameters this is the same path as returned by NavigationServer3D.map_get_path().

Note: The returned array is copied and any changes to it will not update the original property value. See PackedVector3Array for more details.


float path_length = 0.0 🔗

  • void set_path_length\ (\ value: float\ )
  • float get_path_length\ (\ )

Returns the length of the path.


PackedInt64Array path_owner_ids = PackedInt64Array() 🔗

The ObjectID\ s of the Object\ s which manage the regions and links each point of the path goes through.

Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt64Array for more details.


Array[RID] path_rids = [] 🔗

The RID\ s of the regions and links that each point of the path goes through.


PackedInt32Array path_types = PackedInt32Array() 🔗

The type of navigation primitive (region or link) that each point of the path goes through.

Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.


Method Descriptions

void reset\ (\ ) 🔗

Reset the result object to its initial state. This is useful to reuse the object across multiple queries.