btBvhTriangleMeshShape as dynamic object

Post Reply
tmohr
Posts: 8
Joined: Sat Mar 31, 2018 6:30 pm

btBvhTriangleMeshShape as dynamic object

Post by tmohr » Sun May 13, 2018 6:15 pm

Hello,

I try to use several btBvhTriangleMeshShape as dynamic objects and the should collide with each other and also with static objects.

But in the example I wrote the btBvhTriangleMeshShape does not even collide with the ground plane. It just falls through.
Also, the btBvhTriangleMeshShape don't seem to interact with each other.

Any other object that I use collides with the ground plane and with each other (Boxes, Spheres, ConvexHull, Plane).

If I understand it correctly then the btBvhTriangleMeshShape is the only shape that can describe ANY shape. This is why I would really like to get this one working.

In another post I saw that btBvhTriangleMeshShape are rather used for static objects. I did not find this in the documentation anywhere. Such a restriction would be quite hard.

Can anybody please give some more insight on this?
- Is this an intended restriction?
- Will this be changed?
- What Shape can I use to describe an arbitrary object?


Thanks for any hints
Torsten

User avatar
xissburg
Posts: 39
Joined: Sat May 19, 2007 9:28 pm
Location: Santo André-SP, Brazil

Re: btBvhTriangleMeshShape as dynamic object

Post by xissburg » Sun May 13, 2018 10:39 pm

btBvhTriangleMeshShape cannot be used as a dynamic object. You should use a btCompoundShape for more complex objects, where you simply combine a bunch of convex shapes to get a concave shape.

Post Reply