Loading [MathJax]/extensions/MathMenu.js
Jolt Physics
A multi core friendly Game Physics Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HeightFieldShape.h File Reference

Go to the source code of this file.

Classes

class  HeightFieldShapeSettings
 Class that constructs a HeightFieldShape. More...
 
class  HeightFieldShape
 A height field shape. Cannot be used as a dynamic object. More...
 

Namespaces

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

Variables

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