2023-06-08 18:23:48 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2024-09-08 17:02:09 +02:00
<class name= "NavigationPathQueryResult3D" inherits= "Reference" version= "4.5" >
2023-06-08 18:23:48 +02:00
<brief_description >
Represents the result of a 3D pathfinding query.
</brief_description>
<description >
This class stores the result of a 3D navigation path query from the [NavigationServer3D].
</description>
<tutorials >
2023-08-29 22:33:15 +02:00
<link title= "Using NavigationPathQueryObjects" > $DOCS_URL/tutorials/navigation/navigation_using_navigationpathqueryobjects.md</link>
2023-06-08 18:23:48 +02:00
</tutorials>
<methods >
<method name= "reset" >
<return type= "void" />
<description >
Reset the result object to its initial state. This is useful to reuse the object across multiple queries.
</description>
</method>
</methods>
<members >
2023-06-13 18:19:02 +02:00
<member name= "path" type= "PoolVector3Array" setter= "set_path" getter= "get_path" default= "PoolVector3Array( )" >
2023-06-08 18:23:48 +02:00
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 [method NavigationServer3D.map_get_path].
</member>
2023-06-13 18:19:02 +02:00
<member name= "path_owner_ids" type= "Array" setter= "set_path_owner_ids" getter= "get_path_owner_ids" default= "[ ]" >
2023-06-08 18:23:48 +02:00
The [code]ObjectID[/code]s of the [Object]s which manage the regions and links each point of the path goes through.
</member>
2023-06-13 18:19:02 +02:00
<member name= "path_rids" type= "Array" setter= "set_path_rids" getter= "get_path_rids" default= "[ ]" >
2023-06-08 18:23:48 +02:00
The [RID]s of the regions and links that each point of the path goes through.
</member>
2023-06-13 18:19:02 +02:00
<member name= "path_types" type= "PoolIntArray" setter= "set_path_types" getter= "get_path_types" default= "PoolIntArray( )" >
2023-06-08 18:23:48 +02:00
The type of navigation primitive (region or link) that each point of the path goes through.
</member>
</members>
<constants >
<constant name= "PATH_SEGMENT_TYPE_REGION" value= "0" enum= "PathSegmentType" >
This segment of the path goes through a region.
</constant>
<constant name= "PATH_SEGMENT_TYPE_LINK" value= "1" enum= "PathSegmentType" >
This segment of the path goes through a link.
</constant>
</constants>
</class>