Merge pull request #90935 from smix8/navdata_append

Add NavigationMeshSourceGeometryData append functions
This commit is contained in:
Rémi Verschelde
2024-04-22 12:53:32 +02:00
6 changed files with 66 additions and 8 deletions

View File

@@ -31,6 +31,20 @@
Adds the outline points of a shape as traversable area.
</description>
</method>
<method name="append_obstruction_outlines">
<return type="void" />
<param index="0" name="obstruction_outlines" type="PackedVector2Array[]" />
<description>
Appends another array of [param obstruction_outlines] at the end of the existing obstruction outlines array.
</description>
</method>
<method name="append_traversable_outlines">
<return type="void" />
<param index="0" name="traversable_outlines" type="PackedVector2Array[]" />
<description>
Appends another array of [param traversable_outlines] at the end of the existing traversable outlines array.
</description>
</method>
<method name="clear">
<return type="void" />
<description>

View File

@@ -43,6 +43,14 @@
Adds a projected obstruction shape to the source geometry. The [param vertices] are considered projected on a xz-axes plane, placed at the global y-axis [param elevation] and extruded by [param height]. If [param carve] is [code]true[/code] the carved shape will not be affected by additional offsets (e.g. agent radius) of the navigation mesh baking process.
</description>
</method>
<method name="append_arrays">
<return type="void" />
<param index="0" name="vertices" type="PackedFloat32Array" />
<param index="1" name="indices" type="PackedInt32Array" />
<description>
Appends arrays of [param vertices] and [param indices] at the end of the existing arrays. Adds the existing index as an offset to the appended indices.
</description>
</method>
<method name="clear">
<return type="void" />
<description>