Constants for HeightFieldShape, this was moved out of the HeightFieldShape because of a linker bug.
More...
Constants for HeightFieldShape, this was moved out of the HeightFieldShape because of a linker bug.
◆ cLevelShift
constexpr uint HeightFieldShapeConstants::cLevelShift = 2 * cNumBitsXY |
|
constexpr |
◆ cMaskBitsXY
constexpr uint HeightFieldShapeConstants::cMaskBitsXY = (1 << cNumBitsXY) - 1 |
|
constexpr |
◆ cMaxHeightValue16
constexpr uint16 HeightFieldShapeConstants::cMaxHeightValue16 = 0xfffe |
|
constexpr |
This is the maximum allowed height value.
◆ cNoCollisionValue
constexpr float HeightFieldShapeConstants::cNoCollisionValue = FLT_MAX |
|
constexpr |
Value used to create gaps in the height field.
◆ cNoCollisionValue16
constexpr uint16 HeightFieldShapeConstants::cNoCollisionValue16 = 0xffff |
|
constexpr |
When height samples are converted to 16 bit:
This is the magic value for 'no collision'
◆ cNumBitsXY
constexpr uint HeightFieldShapeConstants::cNumBitsXY = 14 |
|
constexpr |
A position in the hierarchical grid is defined by a level (which grid), x and y position. We encode this in a single uint32 as: level << 28 | y << 14 | x.
◆ cStackSize
constexpr int HeightFieldShapeConstants::cStackSize = 128 |
|
constexpr |
Stack size to use during WalkHeightField.