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 carve
is true
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.
Appends another array of obstruction_outlines
at the end of the existing obstruction outlines array.
Appends another array of traversable_outlines
at the end of the existing traversable outlines array.
Clears the internal data.
Clears all projected obstructions.
Returns an axis-aligned bounding box that covers all the stored geometry data. The bounds are calculated when calling this function with the result cached until further geometry changes are made.
Returns all the obstructed area outlines arrays.
Returns the projected obstructions as an Array of dictionaries. Each Dictionary contains the following entries:
vertices
- A PackedFloat32Array that defines the outline points of the projected shape.
carve
- A bool that defines how the projected shape affects the navigation mesh baking. If true
the projected shape will not be affected by addition offsets, e.g. agent radius.
Returns all the traversable area outlines arrays.
Returns true
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:
Sets all the traversable area outlines arrays.