Public Member Functions | Protected Attributes

btStaticPlaneShape Class Reference

The btStaticPlaneShape simulates an infinite non-moving (static) collision plane. More...

#include <btStaticPlaneShape.h>

Inheritance diagram for btStaticPlaneShape:
Inheritance graph
[legend]
Collaboration diagram for btStaticPlaneShape:
Collaboration graph
[legend]

List of all members.

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 btVector3getLocalScaling () const
const btVector3getPlaneNormal () const
const btScalargetPlaneConstant () 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

Detailed Description

The btStaticPlaneShape simulates an infinite non-moving (static) collision plane.

Definition at line 23 of file btStaticPlaneShape.h.


Constructor & Destructor Documentation

btStaticPlaneShape::btStaticPlaneShape ( const btVector3 planeNormal,
btScalar  planeConstant 
)

Definition at line 21 of file btStaticPlaneShape.cpp.

btStaticPlaneShape::~btStaticPlaneShape (  )  [virtual]

Definition at line 31 of file btStaticPlaneShape.cpp.


Member Function Documentation

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.


Member Data Documentation

Definition at line 27 of file btStaticPlaneShape.h.

Definition at line 26 of file btStaticPlaneShape.h.

Definition at line 31 of file btStaticPlaneShape.h.

Definition at line 30 of file btStaticPlaneShape.h.

Definition at line 29 of file btStaticPlaneShape.h.


The documentation for this class was generated from the following files: