Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
NavigationMeshSourceGeometryData2D¶
Inherits: Resource < RefCounted < Object
Container for parsed source geometry data used in navigation mesh baking.
Description¶
Container for parsed source geometry data used in navigation mesh baking.
Methods¶
void |
add_obstruction_outline ( PackedVector2Array shape_outline ) |
void |
add_traversable_outline ( PackedVector2Array shape_outline ) |
void |
clear ( ) |
get_obstruction_outlines ( ) const |
|
get_traversable_outlines ( ) const |
|
has_data ( ) |
|
void |
set_obstruction_outlines ( PackedVector2Array[] obstruction_outlines ) |
void |
set_traversable_outlines ( PackedVector2Array[] traversable_outlines ) |
Method Descriptions¶
void add_obstruction_outline ( PackedVector2Array shape_outline )
Adds the outline points of a shape as obstructed area.
void add_traversable_outline ( PackedVector2Array shape_outline )
Adds the outline points of a shape as traversable area.
void clear ( )
Clears the internal data.
PackedVector2Array[] get_obstruction_outlines ( ) const
Returns all the obstructed area outlines arrays.
PackedVector2Array[] get_traversable_outlines ( ) const
Returns all the traversable area outlines arrays.
bool has_data ( )
Returns true
when parsed source geometry data exists.
void set_obstruction_outlines ( PackedVector2Array[] obstruction_outlines )
Sets all the obstructed area outlines arrays.
void set_traversable_outlines ( PackedVector2Array[] traversable_outlines )
Sets all the traversable area outlines arrays.