Implement this class to provide collision filtering. In other words, you can implement this class if you want finer control over contact creation.
Return true if the given fixture should be considered for ray intersection. By default, userData is cast as a b2Fixture and collision is resolved according to ShouldCollide.
User provided data. Comments indicate that this might be a b2Fixture.
boolean
True if the fixture should be considered for ray intersection, otherwise false.
Return true if contact calculations should be performed between these two fixtures.
b2Fixture potentially colliding with fixtureB.
b2Fixture potentially colliding with fixtureA.
boolean
True if fixtureA and fixtureB probably collide requiring more calculations, otherwise false.