23 #define ENABLE_SOFTBODY_CONCAVE_COLLISIONS 1
38 m_swappedSoftRigidConvexCreateFunc->
m_swapped =
true;
40 #ifdef ENABLE_SOFTBODY_CONCAVE_COLLISIONS
46 m_swappedSoftRigidConcaveCreateFunc->
m_swapped =
true;
60 int collisionAlgorithmMaxElementSize =
btMax(maxSize0, maxSize1);
61 collisionAlgorithmMaxElementSize =
btMax(collisionAlgorithmMaxElementSize, maxSize2);
63 if (collisionAlgorithmMaxElementSize > curElemSize)
84 #ifdef ENABLE_SOFTBODY_CONCAVE_COLLISIONS
100 return m_softSoftCreateFunc;
106 return m_softRigidConvexCreateFunc;
112 return m_swappedSoftRigidConvexCreateFunc;
115 #ifdef ENABLE_SOFTBODY_CONCAVE_COLLISIONS
119 return m_softRigidConcaveCreateFunc;
125 return m_swappedSoftRigidConcaveCreateFunc;
#define btAlignedFree(ptr)
#define btAlignedAlloc(size, alignment)
@ SOFTBODY_SHAPE_PROXYTYPE
SIMD_FORCE_INLINE bool isConcave() const
SIMD_FORCE_INLINE bool isConvex() const
SIMD_FORCE_INLINE const T & btMax(const T &a, const T &b)
btPoolAllocator * m_collisionAlgorithmPool
virtual btCollisionAlgorithmCreateFunc * getCollisionAlgorithmCreateFunc(int proxyType0, int proxyType1)
bool m_ownsCollisionAlgorithmPool
The btPoolAllocator class allows to efficiently allocate a large pool of objects, instead of dynamica...
int getElementSize() const
btSoftBodyConcaveCollisionAlgorithm supports collision between soft body shapes and (concave) triange...
virtual ~btSoftBodyRigidBodyCollisionConfiguration()
virtual btCollisionAlgorithmCreateFunc * getCollisionAlgorithmCreateFunc(int proxyType0, int proxyType1)
creation of soft-soft and soft-rigid, and otherwise fallback to base class implementation
btSoftBodyRigidBodyCollisionConfiguration(const btDefaultCollisionConstructionInfo &constructionInfo=btDefaultCollisionConstructionInfo())
btSoftRigidCollisionAlgorithm provides collision detection between btSoftBody and btRigidBody
collision detection between two btSoftBody shapes
Used by the btCollisionDispatcher to register and create instances for btCollisionAlgorithm.
virtual ~btCollisionAlgorithmCreateFunc()
int m_defaultMaxCollisionAlgorithmPoolSize