Logo Search packages:      
Sourcecode: blender version File versions  Download package

btTriangleMeshShape Class Reference

#include <btTriangleMeshShape.h>

Inheritance diagram for btTriangleMeshShape:

btConcaveShape btCollisionShape

List of all members.

Detailed Description

Concave triangle mesh. Uses an interface to access the triangles to allow for sharing graphics/physics triangles.

Definition at line 24 of file btTriangleMeshShape.h.

Public Member Functions

 btTriangleMeshShape (btStridingMeshInterface *meshInterface)
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia)
void calculateTemporalAabb (const btTransform &curTrans, const btVector3 &linvel, const btVector3 &angvel, btScalar timeStep, btVector3 &temporalAabbMin, btVector3 &temporalAabbMax)
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 btScalar getAngularMotionDisc () const
 getAngularMotionDisc returns the maximus radius needed for Conservative Advancement to handle time-of-impact with rotations.
virtual void getBoundingSphere (btVector3 &center, btScalar &radius) const
virtual const btVector3getLocalScaling () const
virtual btScalar getMargin () const
const btStridingMeshInterfacegetMeshInterface () const
btStridingMeshInterfacegetMeshInterface ()
virtual char * getName () const
virtual int getShapeType () const
bool isCompound () const
bool isConcave () const
bool isConvex () const
bool isInfinite () const
 isInfinite is used to catch simulation error (aabb check)
bool isPolyhedral () const
virtual btVector3 localGetSupportingVertex (const btVector3 &vec) const
virtual btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
virtual void processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
void recalcLocalAabb ()
virtual void setLocalScaling (const btVector3 &scaling)
virtual void setMargin (btScalar collisionMargin)

Protected Attributes

btScalar m_collisionMargin
btVector3 m_localAabbMax
btVector3 m_localAabbMin

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

Generated by  Doxygen 1.6.0   Back to index