Struct b3HeightFieldData
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
A baked height field with compressed storage. Mirror of b3HeightFieldData.
public struct b3HeightFieldDataInherited Members
Remarks
The height, material and flag arrays live past the end of this structure.
Fields
- aabb
-
The local-space bounding box.
- byteCount
-
The total size of this height field in bytes, including the trailing arrays.
- clockwise
-
Whether the triangles use clockwise winding.
- columnCount
-
The number of grid columns along the local x axis.
- flagsOffset
-
The byte offset of the flag array, one System.Byte per triangle.
- hash
-
A content hash, computed with this field set to zero.
- heightScale
-
The quantization scale applied to the compressed heights.
- heightsOffset
-
The byte offset of the compressed height array, one System.UInt16 per grid point.
- materialOffset
-
The byte offset of the material index array, one System.Byte per cell.
- maxHeight
-
The maximum height.
- minHeight
-
The minimum height.
- padding
-
Explicit padding. Identity is a hash over raw bytes, so no implicit padding is allowed.
- rowCount
-
The number of grid rows along the local z axis.
- scale
-
The overall scale.
- version
-
The format version. Must equal Box3D.Native.Constants.B3_HEIGHT_FIELD_VERSION.