HeightMapShape

Inherits: Shape < Resource < Reference < Object

Height map shape for 3D physics.

Description

Height map shape resource, which can be added to a PhysicsBody or Area.

Properties

PoolRealArray

map_data

PoolRealArray( 0, 0, 0, 0 )

int

map_depth

2

int

map_width

2


Property Descriptions

PoolRealArray map_data = PoolRealArray( 0, 0, 0, 0 )

Height map data, pool array must be of map_width * map_depth size.


int map_depth = 2

  • void set_map_depth ( int value )

  • int get_map_depth ( )

Number of vertices in the depth of the height map. Changing this will resize the map_data.


int map_width = 2

  • void set_map_width ( int value )

  • int get_map_width ( )

Number of vertices in the width of the height map. Changing this will resize the map_data.