btConvexHullShape unstable when resting

Post Reply
thloh85
Posts: 26
Joined: Mon Feb 09, 2009 10:07 am

btConvexHullShape unstable when resting

Post by thloh85 »

Hello,

I used btConvexHullShape (with btTriangleMesh as the tris interface) to construct a couple of stuffs (starting with box). The problem is, when it landed on the floor (a static object), it keeps on dancing around. The video below shows my problem. The same problem goes when a shape stacks on the other one.
http://www.youtube.com/watch?v=I31fhO_jT-o
Any idea why is this happening?

Thanks.
thloh85
Posts: 26
Joined: Mon Feb 09, 2009 10:07 am

Re: btConvexHullShape unstable when resting

Post by thloh85 »

Problem solved. After debugging for a whole day, it turns out I'm doing a stupid mistake, description below.
Note to users that might have this problem. If you ever register InternalStepCallback, do NOT clear the manifold there (clearManifold function). It'll cause stability issue.

Thanks a lot for such an incredible physics engine, bullet team :)
Post Reply