HeightMapShape

Inherits: Shape < Resource < Reference < Object

3D 物理的高度图形状。

描述

高度图形状资源,可以添加到 PhysicsBodyArea 中。

属性

PoolRealArray

map_data

PoolRealArray( 0, 0, 0, 0 )

int

map_depth

2

int

map_width

2

属性说明

Default

PoolRealArray( 0, 0, 0, 0 )

Setter

set_map_data(value)

Getter

get_map_data()

高度图数据,池数组的大小必须是 map_width * map_depth


Default

2

Setter

set_map_depth(value)

Getter

get_map_depth()

高度图数据的深度。更改此设置将调整 map_data 的大小。


Default

2

Setter

set_map_width(value)

Getter

get_map_width()

高度图数据的宽度。更改此设置将调整 map_data 的大小。