class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResourceShape3D HeightMapShape3D
A 3D height map shape used for physics collision.

A 3D heightmap shape, intended for use in physics. Usually used to provide a shape for a CollisionShape3D. This is useful for terrain, but it is limited as overhangs (such as caves) cannot be stored. Holes in a HeightMapShape3D are created by assigning very low values to points in the desired area.

Performance: HeightMapShape3D is faster to check collisions against than ConcavePolygonShape3D, but it is significantly slower than primitive shapes like BoxShape3D.

PackedFloat32Array map_data<>():PackedFloat32Array

Height map data. The array's size must be equal to map_width multiplied by map_depth.

int map_depth<>():int

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

int map_width<>():int

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

float get_max_height<>():float

Returns the largest height value found in map_data. Recalculates only when map_data changes.

float get_min_height<>():float

Returns the smallest height value found in map_data. Recalculates only when map_data changes.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...