Interface for height field shape.

高度场的接口。

interface IHeightFieldShape {
    destroy(): void;
    getHeight(rows: number, cols: number): number;
    getNbColumns(): number;
    getNbRows(): number;
    setHeightFieldData(
        numRows: number,
        numCols: number,
        heightData: Float32Array,
        flag: Uint8Array,
        scale: Vector3,
    ): void;
    setOffset(position: Vector3): void;
}

层级 (查看层级一览)

实现于

方法

  • 参数

    • numRows: number

      Number of rows in the height field

    • numCols: number

      Number of columns in the height field

    • heightData: Float32Array

      Array of height values

    • flag: Uint8Array

      Array of flags for each cell

    • scale: Vector3

      Scale of the height field

    返回 void

    Set height field data.

    设置高度数据。