Loading [MathJax]/jax/output/HTML-CSS/config.js
Jolt Physics
A multi core friendly Game Physics Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.
 
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.
 

Detailed Description

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

Variable Documentation

◆ cLevelShift

uint HeightFieldShapeConstants::cLevelShift = 2 * cNumBitsXY
constexpr

◆ cMaskBitsXY

uint HeightFieldShapeConstants::cMaskBitsXY = (1 << cNumBitsXY) - 1
constexpr

◆ cMaxHeightValue16

uint16 HeightFieldShapeConstants::cMaxHeightValue16 = 0xfffe
constexpr

This is the maximum allowed height value.

◆ cNoCollisionValue

float HeightFieldShapeConstants::cNoCollisionValue = FLT_MAX
constexpr

Value used to create gaps in the height field.

◆ cNoCollisionValue16

uint16 HeightFieldShapeConstants::cNoCollisionValue16 = 0xffff
constexpr

When height samples are converted to 16 bit:

This is the magic value for 'no collision'

◆ cNumBitsXY

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

int HeightFieldShapeConstants::cStackSize = 128
constexpr

Stack size to use during WalkHeightField.