Public Member Functions | Private Attributes
btMultiSphereShape Class Reference

#include <btMultiSphereShape.h>

Inheritance diagram for btMultiSphereShape:
Inheritance graph
[legend]

List of all members.

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< btScalarm_radiArray

Detailed Description

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.


Constructor & Destructor Documentation

btMultiSphereShape::btMultiSphereShape ( const btVector3 *  positions,
const btScalar radi,
int  numSpheres 
)

Member Function Documentation

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.

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.


Member Data Documentation

Definition at line 31 of file btMultiSphereShape.h.

Definition at line 32 of file btMultiSphereShape.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


bullet
Author(s): Erwin Coumans, ROS package maintained by Tully Foote
autogenerated on Wed Oct 31 2012 07:54:32