Page 1 of 1

btConvexHullShape unstable when resting

Posted: Wed Jun 10, 2009 3:37 pm
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.

Re: btConvexHullShape unstable when resting

Posted: Thu Jun 11, 2009 1:44 pm
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 :)