Can a btBvhTriangleMeshShape collide with another?

weston
Posts: 3
Joined: Sun Sep 09, 2012 2:15 pm

Can a btBvhTriangleMeshShape collide with another?

Post by weston »

I'm making a vehicle and had no trouble using btBoxShape until I moved to btBvhTriangleMeshShape for the shape.

It collides with boxes fine, but not with another vehicle.

I place the btBvhTriangleMeshShape in a btCompoundShape so I can offset for centre of gravity. But I have tried colliding two vehicles without the compound with no luck.

Edit, I have now put the same shape in a rigid body and find that it does not collide with other btBvhTriangleMeshShape or a btStaticPlaneShape. They also do not rotate at all, they seem to keep their orientation, what could this be a symptom of?
weston
Posts: 3
Joined: Sun Sep 09, 2012 2:15 pm

Re: Can a btBvhTriangleMeshShape collide with another?

Post by weston »

Nevermind, looks like I've just picked the wrong shape type for the job. Would be nice if it fell over when trying to use this in a non-static body.

"Mesh versus mesh is not implemented for btBvhTriangleMeshShape, because btBvhTriangleMeshShape is supposed to be used only for 'static' world geometry without collision detection between static versus static." Erwin here:

http://www.bulletphysics.org/Bullet/php ... f=9&t=2927