Class NavigationPathQueryResult2D
Represents the result of a 2D pathfinding query.
- Inheritance
-
NavigationPathQueryResult2D
Remarks
This class stores the result of a 2D navigation path query from the NavigationServer2D.
See Also
Properties
path
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 NavigationServer2D.map_get_path.
var path : PackedVector2Array = PackedVector2Array()
Property Value
Remarks
- void set_path(PackedVector2Array value)
- PackedVector2Array get_path
path_owner_ids
The ObjectID
s of the Objects which manage the regions and links each point of the path goes through.
var path_owner_ids : PackedInt64Array = PackedInt64Array()
Property Value
Remarks
- void set_path_owner_ids(PackedInt64Array value)
- PackedInt64Array get_path_owner_ids
path_rids
The RIDs of the regions and links that each point of the path goes through.
var path_rids : RID[] = []
Property Value
- RID[]
Remarks
path_types
The type of navigation primitive (region or link) that each point of the path goes through.
var path_types : PackedInt32Array = PackedInt32Array()
Property Value
Remarks
- void set_path_types(PackedInt32Array value)
- PackedInt32Array get_path_types
Methods
reset
Reset the result object to its initial state. This is useful to reuse the object across multiple queries.
void reset