Enabled bullet flag for missiles and changed to sensors to disable collision

This commit is contained in:
Collin Smith 2020-09-12 14:48:39 -07:00
parent efc6a5c0e4
commit 54216795f6

View File

@ -71,6 +71,7 @@ public class Box2DPhysics extends IntervalSystem {
private final BodyDef missileBodyDef = new BodyDef() {{
type = BodyDef.BodyType.DynamicBody;
fixedRotation = true;
bullet = true;
}};
private final BodyDef playerBodyDef = monsterBodyDef;
@ -161,7 +162,7 @@ public class Box2DPhysics extends IntervalSystem {
CircleShape shape = new CircleShape(); {
shape.setRadius(size / 2f);
Fixture fixture = body.createFixture(shape, 1f);
//fixture.setSensor(true);
fixture.setSensor(true);
} shape.dispose();
}
break;