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= "NavigationPathQueryParameters3D" 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
Provides parameters for 3D navigation path queries.
2022-06-26 18:43:01 +08:00
</brief_description>
<description >
2023-04-29 04:59:03 +08:00
By changing various properties of this object, such as the start and target position, you can configure path queries to 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>
<members >
2023-06-21 17:06:32 +08:00
<member name= "map" type= "RID" setter= "set_map" getter= "get_map" default= "RID()" >
2023-10-03 02:11:43 +08:00
The navigation map [RID] used in the path query.
2022-06-26 18:43:01 +08:00
</member>
2023-06-15 22:06:22 +08:00
<member name= "metadata_flags" type= "int" setter= "set_metadata_flags" getter= "get_metadata_flags" enum= "NavigationPathQueryParameters3D.PathMetadataFlags" is_bitfield= "true" default= "7" >
2022-10-06 07:24:45 +08:00
Additional information to include with the navigation path.
</member>
2022-06-26 18:43:01 +08:00
<member name= "navigation_layers" type= "int" setter= "set_navigation_layers" getter= "get_navigation_layers" default= "1" >
The navigation layers the query will use (as a bitmask).
</member>
<member name= "path_postprocessing" type= "int" setter= "set_path_postprocessing" getter= "get_path_postprocessing" enum= "NavigationPathQueryParameters3D.PathPostProcessing" default= "0" >
2022-09-25 21:48:43 +08:00
The path postprocessing applied to the raw path corridor found by the [member pathfinding_algorithm].
2022-06-26 18:43:01 +08:00
</member>
<member name= "pathfinding_algorithm" type= "int" setter= "set_pathfinding_algorithm" getter= "get_pathfinding_algorithm" enum= "NavigationPathQueryParameters3D.PathfindingAlgorithm" default= "0" >
The pathfinding algorithm used in the path query.
</member>
<member name= "start_position" type= "Vector3" setter= "set_start_position" getter= "get_start_position" default= "Vector3(0, 0, 0)" >
The pathfinding start position in global coordinates.
</member>
<member name= "target_position" type= "Vector3" setter= "set_target_position" getter= "get_target_position" default= "Vector3(0, 0, 0)" >
The pathfinding target position in global coordinates.
</member>
</members>
<constants >
<constant name= "PATHFINDING_ALGORITHM_ASTAR" value= "0" enum= "PathfindingAlgorithm" >
The path query uses the default A* pathfinding algorithm.
</constant>
<constant name= "PATH_POSTPROCESSING_CORRIDORFUNNEL" value= "0" enum= "PathPostProcessing" >
2022-12-12 01:02:35 +08:00
Applies a funnel algorithm to the raw path corridor found by the pathfinding algorithm. This will result in the shortest path possible inside the path corridor. This postprocessing very much depends on the navigation mesh polygon layout and the created corridor. Especially tile- or gridbased layouts can face artificial corners with diagonal movement due to a jagged path corridor imposed by the cell shapes.
2022-06-26 18:43:01 +08:00
</constant>
<constant name= "PATH_POSTPROCESSING_EDGECENTERED" value= "1" enum= "PathPostProcessing" >
2022-12-12 01:02:35 +08:00
Centers every path position in the middle of the traveled navigation mesh polygon edge. This creates better paths for tile- or gridbased layouts that restrict the movement to the cells center.
2022-06-26 18:43:01 +08:00
</constant>
2022-10-06 07:24:45 +08:00
<constant name= "PATH_METADATA_INCLUDE_NONE" value= "0" enum= "PathMetadataFlags" is_bitfield= "true" >
Don't include any additional metadata about the returned path.
</constant>
<constant name= "PATH_METADATA_INCLUDE_TYPES" value= "1" enum= "PathMetadataFlags" is_bitfield= "true" >
Include the type of navigation primitive (region or link) that each point of the path goes through.
</constant>
<constant name= "PATH_METADATA_INCLUDE_RIDS" value= "2" enum= "PathMetadataFlags" is_bitfield= "true" >
Include the [RID]s of the regions and links that each point of the path goes through.
</constant>
<constant name= "PATH_METADATA_INCLUDE_OWNERS" value= "4" enum= "PathMetadataFlags" is_bitfield= "true" >
Include the [code]ObjectID[/code]s of the [Object]s which manage the regions and links each point of the path goes through.
</constant>
<constant name= "PATH_METADATA_INCLUDE_ALL" value= "7" enum= "PathMetadataFlags" is_bitfield= "true" >
Include all available metadata about the returned path.
</constant>
2022-06-26 18:43:01 +08:00
</constants>
</class>