addConstraint explodes

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

addConstraint explodes

Post 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.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: addConstraint explodes

Post 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
Post Reply