HeightMapShape

Refreshing Cache...

Inherits: Shape < Resource < Reference < Object

Height map shape for 3D physics (Bullet only).

Description

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

Properties

PoolRealArraymap_dataPoolRealArray( 0, 0, 0, 0 )
intmap_depth2
intmap_width2

Property Descriptions

DefaultPoolRealArray( 0, 0, 0, 0 )
Setterset_map_data(value)
Getterget_map_data()

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


Default2
Setterset_map_depth(value)
Getterget_map_depth()

Depth of the height map data. Changing this will resize the map_data.


Default2
Setterset_map_width(value)
Getterget_map_width()

Width of the height map data. Changing this will resize the map_data.

doradoro's advice! Getters and Setters will be deprecated! Avoid their use!

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:33:09. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.