Container for parsed source geometry data used in navigation mesh baking.
Container for parsed source geometry data used in navigation mesh baking.
Adds the outline points of a shape as obstructed area.
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.
Adds the outline points of a shape as traversable area.
Clears the internal data.
Clears all projected obstructions.
Returns all the obstructed area outlines arrays.
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.
Returns all the traversable area outlines arrays.
Returns [code]true[/code] when parsed source geometry data exists.
Adds the geometry data of another [NavigationMeshSourceGeometryData2D] to the navigation mesh baking data.
Sets all the obstructed area outlines arrays.
Sets the projected obstructions with an Array of Dictionaries with the following key value pairs:
[codeblocks]
[gdscript]
"vertices" : PackedFloat32Array
"carve" : bool
[/gdscript]
[/codeblocks]
Sets all the traversable area outlines arrays.