btGImpactCompoundShape allows to handle multiple btCollisionShape objects at once More...
#include <btGImpactShape.h>
Classes | |
class | CompoundPrimitiveManager |
compound primitive manager More... | |
Public Member Functions | |
void | addChildShape (const btTransform &localTransform, btCollisionShape *shape) |
Use this method for adding children. Only Convex shapes are allowed. | |
void | addChildShape (btCollisionShape *shape) |
Use this method for adding children. Only Convex shapes are allowed. | |
btGImpactCompoundShape (bool children_has_transform=true) | |
virtual void | calculateLocalInertia (btScalar mass, btVector3 &inertia) const |
Calculates the exact inertia tensor for this shape. | |
virtual bool | childrenHasTransform () const |
if true, then its children must get transforms. | |
virtual void | getBulletTetrahedron (int prim_index, btTetrahedronShapeEx &tetrahedron) const |
virtual void | getBulletTriangle (int prim_index, btTriangleShapeEx &triangle) const |
virtual void | getChildAabb (int child_index, const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const |
Retrieves the bound from a child. | |
virtual btCollisionShape * | getChildShape (int index) |
Gets the children. | |
virtual const btCollisionShape * | getChildShape (int index) const |
Gets the children. | |
virtual btTransform | getChildTransform (int index) const |
Gets the children transform. | |
SIMD_FORCE_INLINE CompoundPrimitiveManager * | getCompoundPrimitiveManager () |
Obtains the compopund primitive manager. | |
virtual eGIMPACT_SHAPE_TYPE | getGImpactShapeType () const |
Base method for determinig which kind of GIMPACT shape we get. | |
virtual const char * | getName () const |
virtual int | getNumChildShapes () const |
Gets the number of children. | |
virtual const btPrimitiveManagerBase * | getPrimitiveManager () const |
Obtains the primitive manager. | |
virtual bool | needsRetrieveTetrahedrons () const |
Determines if this shape has tetrahedrons. | |
virtual bool | needsRetrieveTriangles () const |
Determines if this shape has triangles. | |
virtual void | setChildTransform (int index, const btTransform &transform) |
Sets the children transform. | |
virtual | ~btGImpactCompoundShape () |
Protected Attributes | |
btAlignedObjectArray < btCollisionShape * > | m_childShapes |
btAlignedObjectArray< btTransform > | m_childTransforms |
CompoundPrimitiveManager | m_primitive_manager |
btGImpactCompoundShape allows to handle multiple btCollisionShape objects at once
This class only can manage Convex subshapes
Definition at line 300 of file btGImpactShape.h.
btGImpactCompoundShape::btGImpactCompoundShape | ( | bool | children_has_transform = true | ) | [inline] |
Definition at line 370 of file btGImpactShape.h.
virtual btGImpactCompoundShape::~btGImpactCompoundShape | ( | ) | [inline, virtual] |
Definition at line 377 of file btGImpactShape.h.
void btGImpactCompoundShape::addChildShape | ( | const btTransform & | localTransform, |
btCollisionShape * | shape | ||
) | [inline] |
Use this method for adding children. Only Convex shapes are allowed.
Definition at line 410 of file btGImpactShape.h.
void btGImpactCompoundShape::addChildShape | ( | btCollisionShape * | shape | ) | [inline] |
Use this method for adding children. Only Convex shapes are allowed.
Definition at line 418 of file btGImpactShape.h.
virtual void btGImpactCompoundShape::calculateLocalInertia | ( | btScalar | mass, |
btVector3 & | inertia | ||
) | const [virtual] |
Calculates the exact inertia tensor for this shape.
Implements btCollisionShape.
virtual bool btGImpactCompoundShape::childrenHasTransform | ( | ) | const [inline, virtual] |
if true, then its children must get transforms.
Implements btGImpactShapeInterface.
Definition at line 383 of file btGImpactShape.h.
virtual void btGImpactCompoundShape::getBulletTetrahedron | ( | int | prim_index, |
btTetrahedronShapeEx & | tetrahedron | ||
) | const [inline, virtual] |
Implements btGImpactShapeInterface.
Definition at line 490 of file btGImpactShape.h.
virtual void btGImpactCompoundShape::getBulletTriangle | ( | int | prim_index, |
btTriangleShapeEx & | triangle | ||
) | const [inline, virtual] |
Implements btGImpactShapeInterface.
Definition at line 484 of file btGImpactShape.h.
virtual void btGImpactCompoundShape::getChildAabb | ( | int | child_index, |
const btTransform & | t, | ||
btVector3 & | aabbMin, | ||
btVector3 & | aabbMax | ||
) | const [inline, virtual] |
Retrieves the bound from a child.
Reimplemented from btGImpactShapeInterface.
Definition at line 439 of file btGImpactShape.h.
virtual btCollisionShape* btGImpactCompoundShape::getChildShape | ( | int | index | ) | [inline, virtual] |
Gets the children.
Implements btGImpactShapeInterface.
Definition at line 425 of file btGImpactShape.h.
virtual const btCollisionShape* btGImpactCompoundShape::getChildShape | ( | int | index | ) | const [inline, virtual] |
Gets the children.
Implements btGImpactShapeInterface.
Definition at line 431 of file btGImpactShape.h.
virtual btTransform btGImpactCompoundShape::getChildTransform | ( | int | index | ) | const [inline, virtual] |
Gets the children transform.
Implements btGImpactShapeInterface.
Definition at line 454 of file btGImpactShape.h.
SIMD_FORCE_INLINE CompoundPrimitiveManager* btGImpactCompoundShape::getCompoundPrimitiveManager | ( | ) | [inline] |
Obtains the compopund primitive manager.
Definition at line 397 of file btGImpactShape.h.
virtual eGIMPACT_SHAPE_TYPE btGImpactCompoundShape::getGImpactShapeType | ( | ) | const [inline, virtual] |
Base method for determinig which kind of GIMPACT shape we get.
Subshape member functions
Implements btGImpactShapeInterface.
Definition at line 505 of file btGImpactShape.h.
virtual const char* btGImpactCompoundShape::getName | ( | ) | const [inline, virtual] |
Implements btCollisionShape.
Definition at line 500 of file btGImpactShape.h.
virtual int btGImpactCompoundShape::getNumChildShapes | ( | ) | const [inline, virtual] |
Gets the number of children.
Implements btGImpactShapeInterface.
Definition at line 403 of file btGImpactShape.h.
virtual const btPrimitiveManagerBase* btGImpactCompoundShape::getPrimitiveManager | ( | ) | const [inline, virtual] |
Obtains the primitive manager.
Implements btGImpactShapeInterface.
Definition at line 391 of file btGImpactShape.h.
virtual bool btGImpactCompoundShape::needsRetrieveTetrahedrons | ( | ) | const [inline, virtual] |
Determines if this shape has tetrahedrons.
Implements btGImpactShapeInterface.
Definition at line 478 of file btGImpactShape.h.
virtual bool btGImpactCompoundShape::needsRetrieveTriangles | ( | ) | const [inline, virtual] |
Determines if this shape has triangles.
Implements btGImpactShapeInterface.
Definition at line 472 of file btGImpactShape.h.
virtual void btGImpactCompoundShape::setChildTransform | ( | int | index, |
const btTransform & | transform | ||
) | [inline, virtual] |
Sets the children transform.
Implements btGImpactShapeInterface.
Definition at line 464 of file btGImpactShape.h.
Definition at line 365 of file btGImpactShape.h.
Definition at line 364 of file btGImpactShape.h.
Definition at line 363 of file btGImpactShape.h.