I am using BtCompoundShape with addChildShape and removeChildShape (Bullet 2.76)
The bug happens when I remove a shape from the compound shape that is not the last one. If I remove the last one or if I remove all the shapes (in any order) I have found no bugs (but they can exist
This only happens if enableDynamicAabbTree = true. If dynamic AABB tree is disabled the bug never happens.
If you want to try it yourselves just (2 lines of code
- Use the ConvexDecompositionDemo
- Look for the new btCompoundShape(false) and change false for true (Note with false bug will never happen)
- After the the for loop where all the shapes are added to the compound shape (compound->addChildShape) call "compound->removeChildShapeByIndex(0);"
- Play with compound objects and use right mouse button to throw cubes and generate collisions until you find the right collision point (should be really easy I promise)
Greetings