addConstraint explodes
Posted: 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.
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.