Hello! I'm not quite sure if it's bug or feature. =) I have two poligonal bodies (let's say b1 and b2), which actually are not collide, but theirs AABBs are. So, when i get the list of contacts i have a contact in it with shapes of bodies b1 and b2. In my application, i have to know when bodies collide. And it confused me a lot. After some experiments i've added manifold count check to may contacts-loop and it now looks like that:
Now everithing works greate. So, is it ok that i have contacts with no collision-points in world's contacts list?
Code:
for (b2Contact* c = world->m_contactList; c; c = c->m_next)
{
if (c->GetManifoldCount() <= 0) continue;
// check if b1 and b2 collide
.....
}
{
if (c->GetManifoldCount() <= 0) continue;
// check if b1 and b2 collide
.....
}
Now everithing works greate. So, is it ok that i have contacts with no collision-points in world's contacts list?