Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
HeightFieldShapeConstants Namespace Reference

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. More...
 
constexpr int cStackSize = 128
 Stack size to use during WalkHeightField. More...
 
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. More...
 
constexpr uint cMaskBitsXY = (1 << cNumBitsXY) - 1
 
constexpr uint cLevelShift = 2 * cNumBitsXY
 
constexpr uint16 cNoCollisionValue16 = 0xffff
 When height samples are converted to 16 bit: More...
 
constexpr uint16 cMaxHeightValue16 = 0xfffe
 This is the maximum allowed height value. More...
 

Detailed Description

Constants for HeightFieldShape, this was moved out of the HeightFieldShape because of a linker bug.

Variable Documentation

◆ 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.