Add NavigationObstacle options to affect and carve navigation mesh
Adds NavigationObstacle options to affect and carve navigation mesh.
This commit is contained in:
@@ -16,6 +16,14 @@
|
||||
Adds the outline points of a shape as obstructed area.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_projected_obstruction">
|
||||
<return type="void" />
|
||||
<param index="0" name="vertices" type="PackedVector2Array" />
|
||||
<param index="1" name="carve" type="bool" />
|
||||
<description>
|
||||
Adds a projected obstruction shape to the source geometry. 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="add_traversable_outline">
|
||||
<return type="void" />
|
||||
<param index="0" name="shape_outline" type="PackedVector2Array" />
|
||||
@@ -29,12 +37,26 @@
|
||||
Clears the internal data.
|
||||
</description>
|
||||
</method>
|
||||
<method name="clear_projected_obstructions">
|
||||
<return type="void" />
|
||||
<description>
|
||||
Clears all projected obstructions.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_obstruction_outlines" qualifiers="const">
|
||||
<return type="PackedVector2Array[]" />
|
||||
<description>
|
||||
Returns all the obstructed area outlines arrays.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_projected_obstructions" qualifiers="const">
|
||||
<return type="Array" />
|
||||
<description>
|
||||
Returns the projected obstructions as an [Array] of dictionaries. Each [Dictionary] contains the following entries:
|
||||
- [code]vertices[/code] - A [PackedFloat32Array] that defines the outline points of the projected shape.
|
||||
- [code]carve[/code] - A [bool] that defines how the projected shape affects the navigation mesh baking. If [code]true[/code] the projected shape will not be affected by addition offsets, e.g. agent radius.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_traversable_outlines" qualifiers="const">
|
||||
<return type="PackedVector2Array[]" />
|
||||
<description>
|
||||
@@ -61,6 +83,19 @@
|
||||
Sets all the obstructed area outlines arrays.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_projected_obstructions">
|
||||
<return type="void" />
|
||||
<param index="0" name="projected_obstructions" type="Array" />
|
||||
<description>
|
||||
Sets the projected obstructions with an Array of Dictionaries with the following key value pairs:
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
"vertices" : PackedFloat32Array
|
||||
"carve" : bool
|
||||
[/gdscript]
|
||||
[/codeblocks]
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_traversable_outlines">
|
||||
<return type="void" />
|
||||
<param index="0" name="traversable_outlines" type="PackedVector2Array[]" />
|
||||
|
||||
Reference in New Issue
Block a user