Open GoogleCodeExporter opened 9 years ago
Original comment by rtaylor205@gmail.com
on 4 Sep 2010 at 3:20
I have fixed the problem:
World.java:
private boolean contactFilter( long fixtureA, long fixtureB )
{
if( contactFilter != null )
return contactFilter.shouldCollide( fixtures.get(fixtureA), fixtures.get(fixtureB));
else
{
Filter filterA = fixtures.get(fixtureA).getFilterData();
Filter filterB = fixtures.get(fixtureB).getFilterData();
if (filterA.groupIndex == filterB.groupIndex && filterA.groupIndex != 0)
{
return filterA.groupIndex > 0;
}
boolean collide = (filterA.maskBits & filterB.categoryBits) != 0 && (filterA.categoryBits & filterB.maskBits) != 0;
return collide;
}
}
Filter.java:
public short categoryBits = 0x0001;
public short maskBits = -1;
public short groupIndex = 0;
Original comment by rayjun...@gmail.com
on 14 Sep 2010 at 1:15
Original issue reported on code.google.com by
rayjun...@gmail.com
on 25 Aug 2010 at 9:53