Blender  V3.3
Classes | Functions | Variables
btMultiSphereShape.h File Reference
#include "btConvexInternalShape.h"
#include "BulletCollision/BroadphaseCollision/btBroadphaseProxy.h"
#include "LinearMath/btAlignedObjectArray.h"
#include "LinearMath/btAabbUtil2.h"

Go to the source code of this file.

Classes

struct  btPositionAndRadius
 
struct  btMultiSphereShapeData
 

Functions

 BT_DECLARE_ALIGNED_ALLOCATOR ()
 
 btMultiSphereShape (const btVector3 *positions, const btScalar *radi, int numSpheres)
 
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
 CollisionShape Interface. More...
 
virtual btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
 btConvexShape Interface More...
 
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
 
int getSphereCount () const
 
const btVector3getSpherePosition (int index) const
 
btScalar getSphereRadius (int index) const
 
virtual const char * getName () const
 
virtual int calculateSerializeBufferSize () const
 
virtual const char * serialize (void *dataBuffer, btSerializer *serializer) const
 fills the dataBuffer and returns the struct name (and 0 on failure) More...
 

Variables

btMultiSphereShape __pad0__
 
btAlignedObjectArray< btScalarm_radiArray
 

Function Documentation

◆ batchedUnitVectorGetSupportingVertexWithoutMargin()

virtual void batchedUnitVectorGetSupportingVertexWithoutMargin ( const btVector3 vectors,
btVector3 supportVerticesOut,
int  numVectors 
) const
virtual

Definition at line 71 of file btBox2dShape.h.

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

BT_DECLARE_ALIGNED_ALLOCATOR ( )

◆ btMultiSphereShape()

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

◆ calculateLocalInertia()

virtual void calculateLocalInertia ( btScalar  mass,
btVector3 inertia 
) const
virtual

CollisionShape Interface.

Definition at line 54 of file btConeShape.h.

◆ calculateSerializeBufferSize()

virtual int calculateSerializeBufferSize ( ) const
virtual

◆ getName()

virtual const char* getName ( ) const
virtual

Definition at line 60 of file btMultiSphereShape.h.

◆ getSphereCount()

int getSphereCount ( ) const

Definition at line 45 of file btMultiSphereShape.h.

References btAlignedObjectArray< T >::size().

◆ getSpherePosition()

const btVector3& getSpherePosition ( int  index) const

Definition at line 50 of file btMultiSphereShape.h.

◆ getSphereRadius()

btScalar getSphereRadius ( int  index) const

Definition at line 55 of file btMultiSphereShape.h.

References m_radiArray.

◆ localGetSupportingVertexWithoutMargin()

virtual btVector3 localGetSupportingVertexWithoutMargin ( const btVector3 vec) const
virtual

btConvexShape Interface

Definition at line 62 of file btBox2dShape.h.

◆ serialize()

virtual const char* serialize ( void dataBuffer,
btSerializer serializer 
) const
virtual

fills the dataBuffer and returns the struct name (and 0 on failure)

Variable Documentation

◆ __pad0__

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 27 of file btMultiSphereShape.h.

◆ m_radiArray

Definition at line 30 of file btMultiSphereShape.h.

Referenced by btMultiSphereShape(), and getSphereRadius().