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

btGImpactShapeInterface Class Reference

#include <btGImpactShape.h>

Inheritance diagram for btGImpactShapeInterface:

btConcaveShape btCollisionShape btGImpactCompoundShape btGImpactMeshShape btGImpactMeshShapePart

List of all members.

Detailed Description

Base class for gimpact shapes.

Definition at line 78 of file btGImpactShape.h.

Public Member Functions

virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const =0
void calculateTemporalAabb (const btTransform &curTrans, const btVector3 &linvel, const btVector3 &angvel, btScalar timeStep, btVector3 &temporalAabbMin, btVector3 &temporalAabbMax) const
void getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 If the Bounding box is not updated, then this class attemps to calculate it.
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 btScalar getContactBreakingThreshold () const
SIMD_FORCE_INLINE const btAABB & getLocalBox ()
 Obtains the local box, which is the global calculated box of the total of subshapes.
virtual const btVector3 & getLocalScaling () const
virtual btScalar getMargin () const
virtual const char * getName () const =0
virtual int getShapeType () const
void * getUserPointer () const
SIMD_FORCE_INLINE bool isCompound () const
SIMD_FORCE_INLINE bool isConcave () const
SIMD_FORCE_INLINE bool isConvex () const
SIMD_FORCE_INLINE bool isInfinite () const
 isInfinite is used to catch simulation error (aabb check)
SIMD_FORCE_INLINE bool isPolyhedral () const
virtual void postUpdate ()
 Tells to this object that is needed to refit the box set.
virtual void processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
 Function for retrieve triangles.
virtual void rayTest (const btVector3 &rayFrom, const btVector3 &rayTo, btCollisionWorld::RayResultCallback &resultCallback) const
 virtual method for ray collision
virtual void setLocalScaling (const btVector3 &scaling)
virtual void setMargin (btScalar margin)
void setUserPointer (void *userPtr)
 optional user data pointer
SIMD_FORCE_INLINE void updateBound ()
 performs refit operation
virtual bool childrenHasTransform () const =0
 if true, then its children must get transforms.
SIMD_FORCE_INLINE btGImpactBoxSetgetBoxSet ()
 gets boxset
virtual void getBulletTetrahedron (int prim_index, btTetrahedronShapeEx &tetrahedron) const =0
virtual void getBulletTriangle (int prim_index, btTriangleShapeEx &triangle) const =0
virtual void getChildAabb (int child_index, const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 Retrieves the bound from a child.
virtual const btCollisionShapegetChildShape (int index) const =0
 Gets the child.
virtual btCollisionShapegetChildShape (int index)=0
 Gets the children.
virtual btTransform getChildTransform (int index) const =0
 Gets the children transform.
virtual eGIMPACT_SHAPE_TYPE getGImpactShapeType ()=0
 Base method for determinig which kind of GIMPACT shape we get.
virtual int getNumChildShapes () const =0
 Gets the number of children.
virtual const
getPrimitiveManager () const =0
 Obtains the primitive manager.
SIMD_FORCE_INLINE void getPrimitiveTriangle (int index, btPrimitiveTriangle &triangle) const
 if this trimesh
SIMD_FORCE_INLINE bool hasBoxSet () const
 Determines if this class has a hierarchy structure for sorting its primitives.
virtual void lockChildShapes () const
 call when reading child shapes
virtual bool needsRetrieveTetrahedrons () const =0
 Determines if this shape has tetrahedrons.
virtual bool needsRetrieveTriangles () const =0
 Determines if this shape has triangles.
virtual void setChildTransform (int index, const btTransform &transform)=0
 Sets the children transform.
virtual void unlockChildShapes () const

Protected Member Functions

virtual void calcLocalAABB ()
 use this function for perfofm refit in bounding boxes

Protected Attributes

btVector3 localScaling
btGImpactBoxSet m_box_set
btScalar m_collisionMargin
btAABB m_localAABB
bool m_needs_update
int m_shapeType
void * m_userPointer

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

Generated by  Doxygen 1.6.0   Back to index