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.
[b]Performance:[/b] [HeightMapShape3D] is faster to check collisions against than [ConcavePolygonShape3D], but it is significantly slower than primitive shapes like [BoxShape3D].
Returns the largest height value found in [member map_data]. Recalculates only when [member map_data] changes.
Returns the smallest height value found in [member map_data]. Recalculates only when [member map_data] changes.
Height map data. The array's size must be equal to [member map_width] multiplied by [member map_depth].
Number of vertices in the depth of the height map. Changing this will resize the [member map_data].
Number of vertices in the width of the height map. Changing this will resize the [member map_data].