class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResource NavigationMeshSourceGeometryData2D
Container for parsed source geometry data used in navigation mesh baking.

Container for parsed source geometry data used in navigation mesh baking.

void add_obstruction_outline<>( PackedVector2Array shape_outline=, shape_outline:PackedVector2Array=, ):void

Adds the outline points of a shape as obstructed area.

void add_projected_obstruction<>( PackedVector2Array vertices=, vertices:PackedVector2Array=, bool carve=, carve:bool=, ):void

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.

void add_traversable_outline<>( PackedVector2Array shape_outline=, shape_outline:PackedVector2Array=, ):void

Adds the outline points of a shape as traversable area.

void append_obstruction_outlines<>( =, :=, ):void

Appends another array of obstruction_outlines at the end of the existing obstruction outlines array.

void append_traversable_outlines<>( =, :=, ):void

Appends another array of traversable_outlines at the end of the existing traversable outlines array.

void clear<>():void

Clears the internal data.

void clear_projected_obstructions<>():void

Clears all projected obstructions.

Rect2 get_bounds<>():Rect2

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.

Array get_obstruction_outlines<>():Array

Returns all the obstructed area outlines arrays.

Array get_projected_obstructions<>():Array

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.

Array get_traversable_outlines<>():Array

Returns all the traversable area outlines arrays.

bool has_data<>():bool

Returns true when parsed source geometry data exists.

void merge<>( NavigationMeshSourceGeometryData2D other_geometry=, other_geometry:NavigationMeshSourceGeometryData2D=, ):void

Adds the geometry data of another NavigationMeshSourceGeometryData2D to the navigation mesh baking data.

void set_obstruction_outlines<>( =, :=, ):void

Sets all the obstructed area outlines arrays.

void set_projected_obstructions<>( Array projected_obstructions=, projected_obstructions:Array=, ):void

Sets the projected obstructions with an Array of Dictionaries with the following key value pairs:

"vertices" : PackedFloat32Array "carve" : bool
void set_traversable_outlines<>( =, :=, ):void

Sets all the traversable area outlines arrays.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...