NavigationMesh¶
Inherits: Resource < Reference < Object
类别: 核心
简要说明¶
属性¶
2.0 |
||
0.9 |
||
45.0 |
||
0.6 |
||
0.2 |
||
0.3 |
||
6.0 |
||
1.0 |
||
1.3 |
||
12.0 |
||
假 |
||
假 |
||
假 |
||
0 |
||
6.0 |
||
20.0 |
||
8.0 |
||
0 |
方法¶
无效 |
add_polygon ( PoolIntArray polygon ) |
无效 |
clear_polygons ( ) |
无效 |
create_from_mesh ( Mesh mesh ) |
get_collision_mask_bit ( int bit ) const |
|
get_polygon ( int idx ) |
|
get_polygon_count ( ) const |
|
get_vertices ( ) const |
|
无效 |
set_collision_mask_bit ( int bit, bool value ) |
无效 |
set_vertices ( PoolVector3Array vertices ) |
常量¶
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
违约 |
2.0 |
设定器 |
设置“代理”高度(值) |
吸气剂 |
获取u代理u高度() |
float agent/max_climb
违约 |
0.9 |
设定器 |
设置代理最大爬升(值) |
吸气剂 |
找你的经纪人麦克斯爬升 |
float agent/max_slope
违约 |
45.0 |
设定器 |
设置“代理最大坡度”(值) |
吸气剂 |
获取u代理u最大u坡度() |
float agent/radius
违约 |
0.6 |
设定器 |
设置“代理半径”(值) |
吸气剂 |
获取_agent_radius() |
float cell/height
违约 |
0.2 |
设定器 |
设置单元格高度(值) |
吸气剂 |
获取单元格高度() |
float cell/size
违约 |
0.3 |
设定器 |
设置单元格大小(值) |
吸气剂 |
获取单元格大小() |
float detail/sample_distance
违约 |
6.0 |
设定器 |
设置细节样本距离(值) |
吸气剂 |
获取u详细信息u示例u距离() |
float detail/sample_max_error
违约 |
1.0 |
设定器 |
设置_detail_sample_max_error(值) |
吸气剂 |
获取u详细信息u示例u最大u错误() |
float edge/max_error
违约 |
1.3 |
设定器 |
设置边缘最大误差(值) |
吸气剂 |
获取边缘最大错误() |
float edge/max_length
违约 |
12.0 |
设定器 |
设置边缘最大长度(值) |
吸气剂 |
获取边缘最大长度() |
bool filter/filter_walkable_low_height_spans
违约 |
假 |
设定器 |
设置_filter_walkable_low_height_spans(值) |
吸气剂 |
获取“过滤器”可行走“低高度”跨度() |
bool filter/ledge_spans
违约 |
假 |
设定器 |
设置筛选范围(值) |
吸气剂 |
获取筛选范围 |
bool filter/low_hanging_obstacles
违约 |
假 |
设定器 |
设置过滤器低悬挂障碍物(值) |
吸气剂 |
获得低挂障碍物 |
int geometry/collision_mask
设定器 |
设置碰撞屏蔽(值) |
吸气剂 |
获取碰撞掩模( |
int geometry/parsed_geometry_type
违约 |
0 |
设定器 |
设置解析几何类型(值) |
吸气剂 |
获取已解析的几何图形类型() |
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 ( 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 )