addConstraint explodes

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

addConstraint explodes

Post by thloh85 » Thu Nov 05, 2009 12:28 am

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: 4223
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: addConstraint explodes

Post by Erwin Coumans » Sat Nov 07, 2009 2:53 pm

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?

Post Reply