Up to date
This page is up to date for Godot
If you still find outdated information, please open an issue.
Height map shape resource for 3D physics.
Height map shape resource, which can be added to a PhysicsBody3D or Area3D. Heightmap collision is typically used for colliding with terrains. However, since heightmaps cannot store overhangs, collisions with other structures (such as buildings) must be done with other collision shapes such as ConcavePolygonShape3D. If needed, "holes" can be created in an HeightMapShape3D by assigning very low points (like
-100000) in the desired area.
PackedFloat32Array map_data =
PackedFloat32Array(0, 0, 0, 0)
int map_depth =
Number of vertices in the depth of the height map. Changing this will resize the map_data.
int map_width =
Number of vertices in the width of the height map. Changing this will resize the map_data.