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.
addConstraint explodes
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: addConstraint explodes
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
Does it not 'explode' if you leave out any of the steps? Could btCollisionObject::CF_NO_CONTACT_RESPONSE flag be causing this?
Thanks,
Erwin