HeightMapShape¶
Inherits: Shape < Resource < Reference < Object
3D 物理的高度图形状。
描述¶
高度图形状资源,可以添加到 PhysicsBody 或 Area 中。
属性¶
|
||
|
||
|
属性说明¶
PoolRealArray map_data
Default |
|
Setter |
set_map_data(value) |
Getter |
get_map_data() |
高度图数据,池数组的大小必须是 map_width * map_depth。
int map_depth
Default |
|
Setter |
set_map_depth(value) |
Getter |
get_map_depth() |
高度图数据的深度。更改此设置将调整 map_data 的大小。
int map_width
Default |
|
Setter |
set_map_width(value) |
Getter |
get_map_width() |
高度图数据的宽度。更改此设置将调整 map_data 的大小。