Update NavigationAgent to use query_path

This paves the way for having agents respond to link traversal.
This commit is contained in:
Josh Jones
2022-09-19 22:56:54 -07:00
parent c2f66648f1
commit a2c53b881b
10 changed files with 108 additions and 26 deletions

View File

@ -8,6 +8,14 @@
</description>
<tutorials>
</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>
<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].