![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
Constants for HeightFieldShape, this was moved out of the HeightFieldShape because of a linker bug. More...
Variables | |
| constexpr float | cNoCollisionValue = FLT_MAX |
| Value used to create gaps in the height field. | |
| constexpr int | cStackSize = 128 |
| Stack size to use during WalkHeightField. | |
| constexpr uint | cNumBitsXY = 14 |
| 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. | |
| constexpr uint | cMaskBitsXY = (1 << cNumBitsXY) - 1 |
| constexpr uint | cLevelShift = 2 * cNumBitsXY |
| constexpr uint16 | cNoCollisionValue16 = 0xffff |
| When height samples are converted to 16 bit: | |
| constexpr uint16 | cMaxHeightValue16 = 0xfffe |
| This is the maximum allowed height value. | |
Constants for HeightFieldShape, this was moved out of the HeightFieldShape because of a linker bug.
|
constexpr |
|
constexpr |
This is the maximum allowed height value.
Value used to create gaps in the height field.
When height samples are converted to 16 bit:
This is the magic value for 'no collision'
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.