The btCompoundShape is indented for convex child shapes only, or recursive btCompoundShape. Anything else is not not supported.sparkprime wrote:The problem is that I'm using compounds containing bvh mesh data as well as other primitives. I am using this hack locally to fix this problem. I suggest you at least put in the assert and that you consider redesigning things at some point in the future to make Bullet less fragile for this kind of use case. I really think a 'bvh of primitives' is the way forward, it's much simpler, more powerful, and more robust than the current collision shape system.
We can look into this by adding two 'addChildShape' methods, one that only accepts a btConvexShape and another that only accepts btCompoundShape.
I updated today and now I get a segfault here
Code: Select all
if (colObj0->getCollisionShape()->getShapeType() != TRIANGLE_SHAPE_PROXYTYPE)
return;
Thanks,
Erwin