2022-06-26 18:43:01 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2024-02-12 21:55:02 +08:00
<class name= "NavigationPathQueryResult3D" inherits= "RefCounted" experimental= "" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2022-06-26 18:43:01 +08:00
<brief_description >
2023-04-29 04:59:03 +08:00
Represents the result of a 3D pathfinding query.
2022-06-26 18:43:01 +08:00
</brief_description>
<description >
2023-04-29 04:59:03 +08:00
This class stores the result of a 3D navigation path query from the [NavigationServer3D].
2022-06-26 18:43:01 +08:00
</description>
<tutorials >
2023-01-11 13:05:04 +08:00
<link title= "Using NavigationPathQueryObjects" > $DOCS_URL/tutorials/navigation/navigation_using_navigationpathqueryobjects.html</link>
2022-06-26 18:43:01 +08:00
</tutorials>
2022-09-20 13:56:54 +08:00
<methods >
<method name= "reset" >
<return type= "void" />
<description >
2023-02-18 00:30:22 +08:00
Reset the result object to its initial state. This is useful to reuse the object across multiple queries.
2022-09-20 13:56:54 +08:00
</description>
</method>
</methods>
2022-06-26 18:43:01 +08:00
<members >
<member name= "path" type= "PackedVector3Array" setter= "set_path" getter= "get_path" default= "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 [method NavigationServer3D.map_get_path].
</member>
2022-10-06 07:24:45 +08:00
<member name= "path_owner_ids" type= "PackedInt64Array" setter= "set_path_owner_ids" getter= "get_path_owner_ids" default= "PackedInt64Array()" >
The [code]ObjectID[/code]s of the [Object]s which manage the regions and links each point of the path goes through.
</member>
<member name= "path_rids" type= "RID[]" setter= "set_path_rids" getter= "get_path_rids" default= "[]" >
The [RID]s of the regions and links that each point of the path goes through.
</member>
<member name= "path_types" type= "PackedInt32Array" setter= "set_path_types" getter= "get_path_types" default= "PackedInt32Array()" >
The type of navigation primitive (region or link) that each point of the path goes through.
</member>
2022-06-26 18:43:01 +08:00
</members>
2022-10-06 07:24:45 +08:00
<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>
2022-06-26 18:43:01 +08:00
</class>