|
Bullet Collision Detection & Physics Library
|
The btMultiSphereShape represents the convex hull of a collection of spheres. More...
#include <btMultiSphereShape.h>


Private Attributes | |
| btAlignedObjectArray< btVector3 > | m_localPositionArray |
| btAlignedObjectArray< btScalar > | m_radiArray |
Additional Inherited Members | |
Protected Member Functions inherited from btConvexInternalAabbCachingShape | |
| btConvexInternalAabbCachingShape () | |
| void | setCachedLocalAabb (const btVector3 &aabbMin, const btVector3 &aabbMax) |
| void | getCachedLocalAabb (btVector3 &aabbMin, btVector3 &aabbMax) const |
| void | getNonvirtualAabb (const btTransform &trans, btVector3 &aabbMin, btVector3 &aabbMax, btScalar margin) const |
Protected Member Functions inherited from btConvexInternalShape | |
| btConvexInternalShape () | |
Protected Attributes inherited from btConvexInternalShape | |
| btVector3 | m_localScaling |
| btVector3 | m_implicitShapeDimensions |
| btScalar | m_collisionMargin |
| btScalar | m_padding |
Protected Attributes inherited from btCollisionShape | |
| int | m_shapeType |
| void * | m_userPointer |
| int | m_userIndex |
| int | m_userIndex2 |
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 26 of file btMultiSphereShape.h.
| btMultiSphereShape::btMultiSphereShape | ( | const btVector3 * | positions, |
| const btScalar * | radi, | ||
| int | numSpheres | ||
| ) |
Definition at line 25 of file btMultiSphereShape.cpp.
|
virtual |
Implements btConvexShape.
Definition at line 91 of file btMultiSphereShape.cpp.
| btMultiSphereShape::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
CollisionShape Interface.
Implements btCollisionShape.
Definition at line 126 of file btMultiSphereShape.cpp.
|
inlinevirtual |
Reimplemented from btConvexInternalShape.
Definition at line 90 of file btMultiSphereShape.h.
Implements btCollisionShape.
Definition at line 60 of file btMultiSphereShape.h.
|
inline |
Definition at line 45 of file btMultiSphereShape.h.
Definition at line 50 of file btMultiSphereShape.h.
Definition at line 55 of file btMultiSphereShape.h.
|
virtual |
btConvexShape Interface
Implements btConvexShape.
Definition at line 45 of file btMultiSphereShape.cpp.
|
virtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btConvexInternalShape.
Definition at line 144 of file btMultiSphereShape.cpp.
|
private |
Definition at line 29 of file btMultiSphereShape.h.
|
private |
Definition at line 30 of file btMultiSphereShape.h.