NavigationMesh
继承
简要描述
描述
成员
类型 | 属性名 | 默认值 |
---|---|---|
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 |
方法
返回值类型 | 方法名称 |
---|---|
void | add_polygon(polygon: PoolIntArray) |
void | clear_polygons() |
void | create_from_mesh(mesh: Mesh) |
bool | get_collision_mask_bit(bit: int) const |
PoolIntArray | get_polygon(idx: int) |
int | get_polygon_count() const |
PoolVector3Array | get_vertices() const |
void | set_collision_mask_bit(bit: int, value: bool) |
void | set_vertices(vertices: PoolVector3Array) |
常量
- **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**
成员说明
- 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 |
方法说明
- add_polygon add_polygon(polygon: PoolIntArray)
- clear_polygons clear_polygons()
- create_from_mesh create_from_mesh(mesh: Mesh)
- get_collision_mask_bit get_collision_mask_bit(bit: int) const
- get_polygon get_polygon(idx: int)
- get_polygon_count get_polygon_count() const
- get_vertices get_vertices() const
- set_collision_mask_bit set_collision_mask_bit(bit: int, value: bool)
- set_vertices set_vertices(vertices: PoolVector3Array)