make btSoftBody versus btCompoundShape work
This commit is contained in:
@@ -60,14 +60,14 @@ btCollisionAlgorithmCreateFunc* btSoftBodyRigidBodyCollisionConfiguration::getCo
|
|||||||
return m_softSoftCreateFunc;
|
return m_softSoftCreateFunc;
|
||||||
}
|
}
|
||||||
|
|
||||||
///other can't be also softbody, so assume rigid for now
|
///softbody versus convex
|
||||||
if (proxyType0 == SOFTBODY_SHAPE_PROXYTYPE )
|
if (proxyType0 == SOFTBODY_SHAPE_PROXYTYPE && btBroadphaseProxy::isConvex(proxyType1))
|
||||||
{
|
{
|
||||||
return m_softRigidCreateFunc;
|
return m_softRigidCreateFunc;
|
||||||
}
|
}
|
||||||
|
|
||||||
///other can't be also softbody, so assume rigid for now
|
///convex versus soft body
|
||||||
if (proxyType1 == SOFTBODY_SHAPE_PROXYTYPE )
|
if (btBroadphaseProxy::isConvex(proxyType0) && proxyType1 == SOFTBODY_SHAPE_PROXYTYPE )
|
||||||
{
|
{
|
||||||
return m_swappedSoftRigidCreateFunc;
|
return m_swappedSoftRigidCreateFunc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user