Hi !
Working on a game, I actually get if a sensor (m_sensor) has contacts with other bodies, except one (m_body) with this :
The problem is that it returns false when it has collisions with the ground…
I looked with the debug and no contact appeared when in the ground.
Is it possible that the ground is filtered by default ?
Thanks
Working on a game, I actually get if a sensor (m_sensor) has contacts with other bodies, except one (m_body) with this :
Code:
for (b2ContactEdge* ce = m_sensor->GetContactList(); ce; ce = ce->next)
{
b2Contact* c = ce->contact;
if(c->GetFixtureA()->GetBody() != m_body && c->GetFixtureB()->GetBody() != m_body) onGround = true;
}
{
b2Contact* c = ce->contact;
if(c->GetFixtureA()->GetBody() != m_body && c->GetFixtureB()->GetBody() != m_body) onGround = true;
}
The problem is that it returns false when it has collisions with the ground…
I looked with the debug and no contact appeared when in the ground.
Is it possible that the ground is filtered by default ?
Thanks