mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-09-26 20:16:03 +00:00
Fix crash when btSoftBody collides with btBvhTriangleMeshShape inside a btCompoundShape
- The triBody->getCollisionShape() returns the btCompoundShape again, which does not implement the btConcaveShape interface required - The crash happens when processAllTriangles is called below
This commit is contained in:
@@ -195,8 +195,7 @@ void btSoftBodyConcaveCollisionAlgorithm::processCollision(const btCollisionObje
|
||||
|
||||
if (triBody->getCollisionShape()->isConcave())
|
||||
{
|
||||
const btCollisionObject* triOb = triBody->getCollisionObject();
|
||||
const btConcaveShape* concaveShape = static_cast<const btConcaveShape*>(triOb->getCollisionShape());
|
||||
const btConcaveShape* concaveShape = static_cast<const btConcaveShape*>(triBody->getCollisionShape());
|
||||
|
||||
// if (convexBody->getCollisionShape()->isConvex())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user