Height map shape for 3D physics (bullet only)
    public class HeightMapShape : Shape

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

Inheritance Chain

Constructors

    public HeightMapShape()

Properties

    public float[] MapData { get; set; }

Height map data, pool array must be of MapWidth * MapDepth size.

    public int MapDepth { get; set; }

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

    public int MapWidth { get; set; }

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

Methods

    public float[] GetMapData()

Getter for MapData

    public int GetMapDepth()

Getter for MapDepth

    public int GetMapWidth()

Getter for MapWidth

    public void SetMapData(float[] data)

Setter for MapData

    public void SetMapDepth(int height)

Setter for MapDepth

    public void SetMapWidth(int width)

Setter for MapWidth

Tags: