The btStaticPlaneShape simulates an infinite non-moving (static) collision plane. More...
#include <btStaticPlaneShape.h>
Public Member Functions | |
BT_DECLARE_ALIGNED_ALLOCATOR () | |
btStaticPlaneShape (const btVector3 &planeNormal, btScalar planeConstant) | |
virtual | ~btStaticPlaneShape () |
virtual void | getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const |
getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t. | |
virtual void | processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const |
virtual void | calculateLocalInertia (btScalar mass, btVector3 &inertia) const |
virtual void | setLocalScaling (const btVector3 &scaling) |
virtual const btVector3 & | getLocalScaling () const |
const btVector3 & | getPlaneNormal () const |
const btScalar & | getPlaneConstant () const |
virtual const char * | getName () const |
virtual int | calculateSerializeBufferSize () const |
virtual const char * | serialize (void *dataBuffer, btSerializer *serializer) const |
fills the dataBuffer and returns the struct name (and 0 on failure) | |
Protected Attributes | |
btVector3 | m_localAabbMin |
btVector3 | m_localAabbMax |
btVector3 | m_planeNormal |
btScalar | m_planeConstant |
btVector3 | m_localScaling |
The btStaticPlaneShape simulates an infinite non-moving (static) collision plane.
Definition at line 23 of file btStaticPlaneShape.h.
Definition at line 21 of file btStaticPlaneShape.cpp.
btStaticPlaneShape::~btStaticPlaneShape | ( | ) | [virtual] |
Definition at line 31 of file btStaticPlaneShape.cpp.
btStaticPlaneShape::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
Reimplemented from btConcaveShape.
void btStaticPlaneShape::calculateLocalInertia | ( | btScalar | mass, | |
btVector3 & | inertia | |||
) | const [virtual] |
Implements btCollisionShape.
Definition at line 91 of file btStaticPlaneShape.cpp.
int btStaticPlaneShape::calculateSerializeBufferSize | ( | ) | const [inline, virtual] |
Reimplemented from btCollisionShape.
Definition at line 83 of file btStaticPlaneShape.h.
void btStaticPlaneShape::getAabb | ( | const btTransform & | t, | |
btVector3 & | aabbMin, | |||
btVector3 & | aabbMax | |||
) | const [virtual] |
getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.
Implements btCollisionShape.
Definition at line 37 of file btStaticPlaneShape.cpp.
const btVector3 & btStaticPlaneShape::getLocalScaling | ( | ) | const [virtual] |
Implements btCollisionShape.
Definition at line 104 of file btStaticPlaneShape.cpp.
virtual const char* btStaticPlaneShape::getName | ( | ) | const [inline, virtual] |
Implements btCollisionShape.
Definition at line 61 of file btStaticPlaneShape.h.
const btScalar& btStaticPlaneShape::getPlaneConstant | ( | ) | const [inline] |
Definition at line 55 of file btStaticPlaneShape.h.
const btVector3& btStaticPlaneShape::getPlaneNormal | ( | ) | const [inline] |
Definition at line 50 of file btStaticPlaneShape.h.
void btStaticPlaneShape::processAllTriangles | ( | btTriangleCallback * | callback, | |
const btVector3 & | aabbMin, | |||
const btVector3 & | aabbMax | |||
) | const [virtual] |
Implements btConcaveShape.
Definition at line 58 of file btStaticPlaneShape.cpp.
const char * btStaticPlaneShape::serialize | ( | void * | dataBuffer, | |
btSerializer * | serializer | |||
) | const [inline, virtual] |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btCollisionShape.
Definition at line 89 of file btStaticPlaneShape.h.
void btStaticPlaneShape::setLocalScaling | ( | const btVector3 & | scaling | ) | [virtual] |
Implements btCollisionShape.
Definition at line 100 of file btStaticPlaneShape.cpp.
btVector3 btStaticPlaneShape::m_localAabbMax [protected] |
Definition at line 27 of file btStaticPlaneShape.h.
btVector3 btStaticPlaneShape::m_localAabbMin [protected] |
Definition at line 26 of file btStaticPlaneShape.h.
btVector3 btStaticPlaneShape::m_localScaling [protected] |
Definition at line 31 of file btStaticPlaneShape.h.
btScalar btStaticPlaneShape::m_planeConstant [protected] |
Definition at line 30 of file btStaticPlaneShape.h.
btVector3 btStaticPlaneShape::m_planeNormal [protected] |
Definition at line 29 of file btStaticPlaneShape.h.