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

btGImpactMeshShapePart Class Reference

#include <btGImpactShape.h>

Inheritance diagram for btGImpactMeshShapePart:

btGImpactShapeInterface btConcaveShape btCollisionShape

List of all members.

Detailed Description

This class manages a sub part of a mesh supplied by the btStridingMeshInterface interface.

Definition at line 513 of file btGImpactShape.h.

Public Member Functions

 btGImpactMeshShapePart (btStridingMeshInterface *meshInterface, int part)
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
void calculateTemporalAabb (const btTransform &curTrans, const btVector3 &linvel, const btVector3 &angvel, btScalar timeStep, btVector3 &temporalAabbMin, btVector3 &temporalAabbMax) const
virtual bool childrenHasTransform () const
 if true, then its children must get transforms.
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 void getBulletTetrahedron (int prim_index, btTetrahedronShapeEx &tetrahedron) const
virtual void getBulletTriangle (int prim_index, btTriangleShapeEx &triangle) const
virtual const btCollisionShapegetChildShape (int index) const
 Gets the child.
virtual btCollisionShapegetChildShape (int index)
 Gets the children.
virtual btTransform getChildTransform (int index) const
 Gets the children transform.
virtual btScalar getContactBreakingThreshold () const
virtual eGIMPACT_SHAPE_TYPE getGImpactShapeType ()
 Base method for determinig which kind of GIMPACT shape we get.
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
SIMD_FORCE_INLINE btScalar getMargin () const
virtual const char * getName () const
virtual int getNumChildShapes () const
 Gets the number of children.
SIMD_FORCE_INLINE int getPart () const
virtual const
getPrimitiveManager () const
 Obtains the primitive manager.
virtual int getShapeType () const
getTrimeshPrimitiveManager ()
void * getUserPointer () const
SIMD_FORCE_INLINE void getVertex (int vertex_index, btVector3 &vertex) const
SIMD_FORCE_INLINE int getVertexCount () 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 lockChildShapes () const
 call when reading child shapes
virtual bool needsRetrieveTetrahedrons () const
 Determines if this shape has tetrahedrons.
virtual bool needsRetrieveTriangles () const
 Determines if this shape has triangles.
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 setChildTransform (int index, const btTransform &transform)
 Sets the children transform.
virtual void setLocalScaling (const btVector3 &scaling)
SIMD_FORCE_INLINE void setMargin (btScalar margin)
void setUserPointer (void *userPtr)
 optional user data pointer
virtual void unlockChildShapes () const
SIMD_FORCE_INLINE void updateBound ()
 performs refit operation
SIMD_FORCE_INLINE btGImpactBoxSetgetBoxSet ()
 gets boxset
virtual void getChildAabb (int child_index, const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 Retrieves the bound from a child.
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.

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
TrimeshPrimitiveManager m_primitive_manager
int m_shapeType
void * m_userPointer


class  TrimeshPrimitiveManager
 Trimesh primitive manager. More...

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

Generated by  Doxygen 1.6.0   Back to index