NavigationMesh

Inherits: Resource < Reference < Object

Properties

float agent/height 2.0
float agent/max_climb 0.9
float agent/max_slope 45.0
float agent/radius 0.6
float cell/height 0.2
float cell/size 0.3
float detail/sample_distance 6.0
float detail/sample_max_error 1.0
float edge/max_error 1.3
float edge/max_length 12.0
bool filter/filter_walkable_low_height_spans false
bool filter/ledge_spans false
bool filter/low_hanging_obstacles false
int geometry/collision_mask
int geometry/parsed_geometry_type 0
int geometry/source_geometry_mode 0
String geometry/source_group_name
float polygon/verts_per_poly 6.0
float region/merge_size 20.0
float region/min_size 8.0
int sample_partition_type/sample_partition_type 0

Methods

void add_polygon ( PoolIntArray polygon )
void clear_polygons ( )
void create_from_mesh ( Mesh mesh )
bool get_collision_mask_bit ( int bit ) const
PoolIntArray get_polygon ( int idx )
int get_polygon_count ( ) const
PoolVector3Array get_vertices ( ) const
void set_collision_mask_bit ( int bit, bool value )
void set_vertices ( PoolVector3Array vertices )

Constants

  • SAMPLE_PARTITION_WATERSHED = 0
  • SAMPLE_PARTITION_MONOTONE = 1
  • SAMPLE_PARTITION_LAYERS = 2
  • PARSED_GEOMETRY_MESH_INSTANCES = 0
  • PARSED_GEOMETRY_STATIC_COLLIDERS = 1
  • PARSED_GEOMETRY_BOTH = 2

Property Descriptions

float agent/height

Default 2.0
Setter set_agent_height(value)
Getter get_agent_height()

float agent/max_climb

Default 0.9
Setter set_agent_max_climb(value)
Getter get_agent_max_climb()

float agent/max_slope

Default 45.0
Setter set_agent_max_slope(value)
Getter get_agent_max_slope()

float agent/radius

Default 0.6
Setter set_agent_radius(value)
Getter get_agent_radius()

float cell/height

Default 0.2
Setter set_cell_height(value)
Getter get_cell_height()

float cell/size

Default 0.3
Setter set_cell_size(value)
Getter get_cell_size()

float detail/sample_distance

Default 6.0
Setter set_detail_sample_distance(value)
Getter get_detail_sample_distance()

float detail/sample_max_error

Default 1.0
Setter set_detail_sample_max_error(value)
Getter get_detail_sample_max_error()

float edge/max_error

Default 1.3
Setter set_edge_max_error(value)
Getter get_edge_max_error()

float edge/max_length

Default 12.0
Setter set_edge_max_length(value)
Getter get_edge_max_length()

bool filter/filter_walkable_low_height_spans

Default false
Setter set_filter_walkable_low_height_spans(value)
Getter get_filter_walkable_low_height_spans()

bool filter/ledge_spans

Default false
Setter set_filter_ledge_spans(value)
Getter get_filter_ledge_spans()

bool filter/low_hanging_obstacles

Default false
Setter set_filter_low_hanging_obstacles(value)
Getter get_filter_low_hanging_obstacles()

int geometry/collision_mask

Setter set_collision_mask(value)
Getter get_collision_mask()

int geometry/parsed_geometry_type

Default 0
Setter set_parsed_geometry_type(value)
Getter get_parsed_geometry_type()

int geometry/source_geometry_mode

Default 0
Setter set_source_geometry_mode(value)
Getter get_source_geometry_mode()

String geometry/source_group_name

Setter set_source_group_name(value)
Getter get_source_group_name()

float polygon/verts_per_poly

Default 6.0
Setter set_verts_per_poly(value)
Getter get_verts_per_poly()

float region/merge_size

Default 20.0
Setter set_region_merge_size(value)
Getter get_region_merge_size()

float region/min_size

Default 8.0
Setter set_region_min_size(value)
Getter get_region_min_size()

int sample_partition_type/sample_partition_type

Default 0
Setter set_sample_partition_type(value)
Getter get_sample_partition_type()

Method Descriptions

void add_polygon ( PoolIntArray polygon )

void clear_polygons ( )

void create_from_mesh ( Mesh mesh )

bool get_collision_mask_bit ( int bit ) const

PoolIntArray get_polygon ( int idx )

int get_polygon_count ( ) const

PoolVector3Array get_vertices ( ) const

void set_collision_mask_bit ( int bit, bool value )

void set_vertices ( PoolVector3Array vertices )

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_navigationmesh.html