W3cubDocs

/Godot 3.1

NavigationMesh

Inherits: Resource < Reference < Object

Category: Core

Brief Description

Properties

float agent/height
float agent/max_climb
float agent/max_slope
float agent/radius
float cell/height
float cell/size
float detail/sample_distance
float detail/sample_max_error
float edge/max_error
float edge/max_length
bool filter/filter_walkable_low_height_spans
bool filter/ledge_spans
bool filter/low_hanging_obstacles
float polygon/verts_per_poly
float region/merge_size
float region/min_size
int sample_partition_type/sample_partition_type

Methods

void add_polygon ( PoolIntArray polygon )
void clear_polygons ( )
void create_from_mesh ( Mesh mesh )
PoolIntArray get_polygon ( int idx )
int get_polygon_count ( ) const
PoolVector3Array get_vertices ( ) const
void set_vertices ( PoolVector3Array vertices )

Constants

  • SAMPLE_PARTITION_WATERSHED = 0
  • SAMPLE_PARTITION_MONOTONE = 1
  • SAMPLE_PARTITION_LAYERS = 2

Property Descriptions

float agent/height

Setter set_agent_height(value)
Getter get_agent_height()

float agent/max_climb

Setter set_agent_max_climb(value)
Getter get_agent_max_climb()

float agent/max_slope

Setter set_agent_max_slope(value)
Getter get_agent_max_slope()

float agent/radius

Setter set_agent_radius(value)
Getter get_agent_radius()

float cell/height

Setter set_cell_height(value)
Getter get_cell_height()

float cell/size

Setter set_cell_size(value)
Getter get_cell_size()

float detail/sample_distance

Setter set_detail_sample_distance(value)
Getter get_detail_sample_distance()

float detail/sample_max_error

Setter set_detail_sample_max_error(value)
Getter get_detail_sample_max_error()

float edge/max_error

Setter set_edge_max_error(value)
Getter get_edge_max_error()

float edge/max_length

Setter set_edge_max_length(value)
Getter get_edge_max_length()

bool filter/filter_walkable_low_height_spans

Setter set_filter_walkable_low_height_spans(value)
Getter get_filter_walkable_low_height_spans()

bool filter/ledge_spans

Setter set_filter_ledge_spans(value)
Getter get_filter_ledge_spans()

bool filter/low_hanging_obstacles

Setter set_filter_low_hanging_obstacles(value)
Getter get_filter_low_hanging_obstacles()

float polygon/verts_per_poly

Setter set_verts_per_poly(value)
Getter get_verts_per_poly()

float region/merge_size

Setter set_region_merge_size(value)
Getter get_region_merge_size()

float region/min_size

Setter set_region_min_size(value)
Getter get_region_min_size()

int sample_partition_type/sample_partition_type

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 )

PoolIntArray get_polygon ( int idx )

int get_polygon_count ( ) const

PoolVector3Array get_vertices ( ) const

void set_vertices ( PoolVector3Array vertices )

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