I believe I have found a bug.
On line 44 of Box2D\Dynamics\b2ContactManager.cpp.
The following code may not call EndContact if the contact is a sensor contact because sensor contacts generate no manifold and have no contact points.
If this line was replaced with a check to see if the contact has its touching flag set, I believe this would fix the problem.
What is the correct procedure for bug reporting?
Do I need to create a testbed project demonstrating this bug?
On line 44 of Box2D\Dynamics\b2ContactManager.cpp.
The following code may not call EndContact if the contact is a sensor contact because sensor contacts generate no manifold and have no contact points.
If this line was replaced with a check to see if the contact has its touching flag set, I believe this would fix the problem.
Code:
void b2ContactManager::Destroy(b2Contact* c)
{
...
if (c->m_manifold.m_pointCount > 0)
{
m_contactListener->EndContact(c);
}
...
}
{
...
if (c->m_manifold.m_pointCount > 0)
{
m_contactListener->EndContact(c);
}
...
}
What is the correct procedure for bug reporting?
Do I need to create a testbed project demonstrating this bug?