@Override public boolean reportFixture (Fixture fixture) { // if the hit point is inside the fixture of the body // we report it if (fixture.testPoint(testPoint.x, testPoint.y)) { hitBody = fixture.getBody(); return false; } else return true; } };
@Override public boolean reportFixture (Fixture fixture) { // if the hit fixture's body is the ground body // we ignore it if (fixture.getBody() == groundBody) return true; // if the hit point is inside the fixture of the body // we report it if (fixture.testPoint(testPoint.x, testPoint.y)) { hitBody = fixture.getBody(); return false; } else return true; } };
@Override public boolean reportFixture (Fixture fixture) { // if the hit point is inside the fixture of the body // we report it if (fixture.testPoint(point.x, point.y)) { hitBody = fixture.getBody(); return false; } else return true; } };
@Override public boolean reportFixture (Fixture fixture) { // if the hit point is inside the fixture of the body // we report it if (fixture.testPoint(point.x, point.y)) { hitBody = fixture.getBody(); return false; } else return true; } };
@Override public boolean reportFixture (Fixture fixture) { // if the hit fixture's body is the ground body // we ignore it if (fixture.getBody() == fixBody) return true; // if the hit point is inside the fixture of the body // we report it if (fixture.testPoint(testPoint.x, testPoint.y)) { hitBody = fixture.getBody(); return false; } else return true; } };
@Override public boolean reportFixture(Fixture fixture) { // if the hit point is inside the fixture of the body // we report it if (fixture.testPoint(box2dAABBTestPoint.x, box2dAABBTestPoint.y)) { Body hitBody = fixture.getBody(); for (b2BodyDefModel bodyModel : PhysicalWorld.MODEL.bodyDefModels) { if (hitBody == bodyModel.body) { data = bodyModel; adapter.callUI.updateToUI(bodyModel); return false; } } data = null; secondData = null; return false; } else { secondData = null; return true; } } };