I have a complex 3D scene using btvTriangleMeshShape and whenever a soft body (my sample uses the btSoftBodyHelpers::CreatePatch and btSoftBodyHelpers::CreateEllipsoid) collides with the scene a crash occurs on these lines:
Code: Select all
if (shapeCache[partId][triangleIndex])
{
btCollisionShape* tm = shapeCache[partId][triangleIndex];
//copy over user pointers to temporary shape
tm->setUserPointer(ob->getRootCollisionShape()->getUserPointer());
...
}
Also, when I use btStaticPlaneShape after a few collisions with rigid bodies the soft body would fall through the ground? (perhaps collision margin problem?)
I wonder if this is still a work in progress?