| Bullet Collision Detection & Physics Library
    | 
 
 
 
Go to the documentation of this file.
   16 #ifndef BT_HEIGHTFIELD_TERRAIN_SHAPE_H 
   17 #define BT_HEIGHTFIELD_TERRAIN_SHAPE_H 
  103         virtual btScalar getRawHeightFieldValue(
int x, 
int y) 
const;
 
  104         void quantizeWithClamp(
int* out, 
const btVector3& point, 
int isMax) 
const;
 
  105         void getVertex(
int x, 
int y, 
btVector3& vertex) 
const;
 
  112         void initialize(
int heightStickWidth, 
int heightStickLength,
 
  113                                         const void* heightfieldData, 
btScalar heightScale,
 
  127                                                           const void* heightfieldData, 
btScalar heightScale,
 
  139         btHeightfieldTerrainShape(
int heightStickWidth, 
int heightStickLength, 
const void* heightfieldData, 
btScalar maxHeight, 
int upAxis, 
bool useFloatData, 
bool flipQuadEdges);
 
  154         virtual void setLocalScaling(
const btVector3& scaling);
 
  156         virtual const btVector3& getLocalScaling() 
const;
 
  159         virtual const char* 
getName()
 const { 
return "HEIGHTFIELD"; }
 
  162 #endif  //BT_HEIGHTFIELD_TERRAIN_SHAPE_H 
  
void setUseZigzagSubdivision(bool useZigzagSubdivision=true)
could help compatibility with Ogre heightfields. See https://code.google.com/p/bullet/issues/detail?...
PHY_ScalarType m_heightDataType
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
The btConcaveShape class provides an interface for non-moving (static) concave shapes.
btHeightfieldTerrainShape simulates a 2D heightfield terrain
bool m_useDiamondSubdivision
const btScalar * m_heightfieldDataFloat
void setUseDiamondSubdivision(bool useDiamondSubdivision=true)
const void * m_heightfieldDataUnknown
PHY_ScalarType
PHY_ScalarType enumerates possible scalar types.
The btTriangleCallback provides a callback for each overlapping triangle when calling processAllTrian...
#define BT_DECLARE_ALIGNED_ALLOCATOR()
btVector3 can be used to represent 3D points and vectors.
bool m_useZigzagSubdivision
const unsigned char * m_heightfieldDataUnsignedChar
#define ATTRIBUTE_ALIGNED16(a)
int m_heightStickWidth
terrain data
const short * m_heightfieldDataShort
virtual const char * getName() const