16 #ifndef BT_MULTI_SPHERE_MINKOWSKI_H
17 #define BT_MULTI_SPHERE_MINKOWSKI_H
47 return m_localPositionArray.
size();
52 return m_localPositionArray[index];
BT_DECLARE_ALIGNED_ALLOCATOR()
virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3 &vec) const
btConvexShape Interface
virtual const char * getName() const
virtual int calculateSerializeBufferSize() const
int getSphereCount() const
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const
CollisionShape Interface.
const btVector3 & getSpherePosition(int index) const
btMultiSphereShape(const btVector3 *positions, const btScalar *radi, int numSpheres)
btScalar getSphereRadius(int index) const
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
btAlignedObjectArray< btScalar > m_radiArray
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
#define SIMD_FORCE_INLINE
btVector3
btVector3 can be used to represent 3D points and vectors. It has an un-used w component to suit 16-by...
SIMD_FORCE_INLINE int size() const
return the number of elements in the array
btConvexInternalAabbCachingShape adds local aabb caching for convex shapes, to avoid expensive boundi...
MutableSpan< float3 > positions
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
btConvexInternalShapeData m_convexInternalShapeData
int m_localPositionArraySize
btPositionAndRadius * m_localPositionArrayPtr