Mesh vs Rigid Body

cesarmendoza
Posts: 1
Joined: Wed Jun 05, 2013 12:18 pm

Mesh vs Rigid Body

Post by cesarmendoza »

Hey!

I am having an issue:

A dynamic rigid body (a box) falls down onto my kinematic mesh body (another box made of triangles, my ground). Everything is ok for several seconds, but then suddenly, after say 4 or 5 seconds, the rigid box starts "going through" (penetrating) the mesh, and going to the other side to keep on falling.

I might missing a parameter or something.. anybody has an idea ?

thanks.

c
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Mesh vs Rigid Body

Post by Erwin Coumans »

Usually it helps if you can reproduce the issue by modifying one of the Bullet demos, such as the Bullet/Demos/BasicDemo or so. You can attach the demo source code to this forum as a zip file.

What collision shapes are you using?

For the box, I suggest using a btBoxShape. For the ground mesh, a btBvhTriangleMeshShape seems appropriate.
Thanks,
Erwin