Hey Boris,
I found a problem where ENDCONTACT events were not being passed if contacts were only touching for a short period of time. I changed
in the Destroy method of the b2ContactManager to...
and it seemed to fix the problem. Can you see any downside to doing that?
Thanks,
Bryan
I found a problem where ENDCONTACT events were not being passed if contacts were only touching for a short period of time. I changed
Code:
if (c.m_manifold.m_pointCount > 0){
m_contactListener.EndContact(c);
}
m_contactListener.EndContact(c);
}
in the Destroy method of the b2ContactManager to...
Code:
if (c.IsTouching()){
m_contactListener.EndContact(c);
}
m_contactListener.EndContact(c);
}
and it seemed to fix the problem. Can you see any downside to doing that?
Thanks,
Bryan