I have created a button that is implemented as two bodies connected by a distance and prismatic joint. One of these bodies is dynamic, the other static and they are set to not collide with each other. Inside of the static body is a trigger region that is set to only collide with the dynamic body. When the trigger region is hit, I set the dynamic body to static. At this point, I get an assert in b2ContactManager::Collide, line 118 in the latest SVN revision:
My question is, when a body is changed to static shouldn't the world destroy all contacts between that body and other static/kinematic bodies (but leave contacts between other dynamic bodies)?
Justin
Code:
b2Assert(bodyA->m_type == b2_dynamicBody || bodyB->m_type == b2_dynamicBody);
My question is, when a body is changed to static shouldn't the world destroy all contacts between that body and other static/kinematic bodies (but leave contacts between other dynamic bodies)?
Justin