#include <btMultiSphereShape.h>
Public Member Functions | |
virtual void | batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const |
btMultiSphereShape (const btVector3 *positions, const btScalar *radi, int numSpheres) | |
virtual void | calculateLocalInertia (btScalar mass, btVector3 &inertia) const |
CollisionShape Interface. | |
virtual int | calculateSerializeBufferSize () const |
virtual const char * | getName () const |
int | getSphereCount () const |
const btVector3 & | getSpherePosition (int index) const |
btScalar | getSphereRadius (int index) const |
virtual btVector3 | localGetSupportingVertexWithoutMargin (const btVector3 &vec) const |
btConvexShape Interface | |
virtual const char * | serialize (void *dataBuffer, btSerializer *serializer) const |
fills the dataBuffer and returns the struct name (and 0 on failure) | |
Private Attributes | |
btAlignedObjectArray< btVector3 > | m_localPositionArray |
btAlignedObjectArray< btScalar > | m_radiArray |
The btMultiSphereShape represents the convex hull of a collection of spheres. You can create special capsules or other smooth volumes. It is possible to animate the spheres for deformation, but call 'recalcLocalAabb' after changing any sphere position/radius
Definition at line 28 of file btMultiSphereShape.h.
btMultiSphereShape::btMultiSphereShape | ( | const btVector3 * | positions, |
const btScalar * | radi, | ||
int | numSpheres | ||
) |
virtual void btMultiSphereShape::batchedUnitVectorGetSupportingVertexWithoutMargin | ( | const btVector3 * | vectors, |
btVector3 * | supportVerticesOut, | ||
int | numVectors | ||
) | const [virtual] |
virtual void btMultiSphereShape::calculateLocalInertia | ( | btScalar | mass, |
btVector3 & | inertia | ||
) | const [virtual] |
CollisionShape Interface.
SIMD_FORCE_INLINE int btMultiSphereShape::calculateSerializeBufferSize | ( | ) | const [virtual] |
Reimplemented from btConvexInternalShape.
Definition at line 92 of file btMultiSphereShape.h.
virtual const char* btMultiSphereShape::getName | ( | ) | const [inline, virtual] |
Definition at line 61 of file btMultiSphereShape.h.
int btMultiSphereShape::getSphereCount | ( | ) | const [inline] |
Definition at line 45 of file btMultiSphereShape.h.
const btVector3& btMultiSphereShape::getSpherePosition | ( | int | index | ) | const [inline] |
Definition at line 50 of file btMultiSphereShape.h.
btScalar btMultiSphereShape::getSphereRadius | ( | int | index | ) | const [inline] |
Definition at line 55 of file btMultiSphereShape.h.
virtual btVector3 btMultiSphereShape::localGetSupportingVertexWithoutMargin | ( | const btVector3 & | vec | ) | const [virtual] |
btConvexShape Interface
virtual const char* btMultiSphereShape::serialize | ( | void * | dataBuffer, |
btSerializer * | serializer | ||
) | const [virtual] |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btConvexInternalShape.
btAlignedObjectArray<btVector3> btMultiSphereShape::m_localPositionArray [private] |
Definition at line 31 of file btMultiSphereShape.h.
Definition at line 32 of file btMultiSphereShape.h.