Page 1 of 1

addConstraint explodes

Posted: Thu Nov 05, 2009 12:28 am
by thloh85
Hi all,

I've got a problem with addConstraint, which I believe is a bug.
The reproduction case is simple
1. create 2 rigid body
2. body->setCollisionFlags(body->getCollisionFlags() | btCollisionObject::CF_NO_CONTACT_RESPONSE) for one of them
3. setCenterOfMassTransform so that they overlap each other
4. create a hinge constraint (or any constraint) that attaches both the rigid bodies
5. addConstraint(the_constraint, true) - True so that they won't collide to each other (since they're overlapping) and explode

But the problem is, after adding the constraint, they explode, as if we've done a addConstraint(the_constraint, false), and keep jumping around.

Anyone has a solution to this?

Thanks a lot in advance.

Re: addConstraint explodes

Posted: Sat Nov 07, 2009 2:53 pm
by Erwin Coumans
Thanks for the report, we haven't had time to reproduce it yet. Do you have more information about the details?

Does it not 'explode' if you leave out any of the steps? Could btCollisionObject::CF_NO_CONTACT_RESPONSE flag be causing this?
Thanks,
Erwin