From 54216795f6b36d0523f50f7c1792e8e4f3d55dbd Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sat, 12 Sep 2020 14:48:39 -0700 Subject: [PATCH] Enabled bullet flag for missiles and changed to sensors to disable collision --- core/src/com/riiablo/map/Box2DPhysics.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/riiablo/map/Box2DPhysics.java b/core/src/com/riiablo/map/Box2DPhysics.java index 8f4cc1f7..860389f3 100644 --- a/core/src/com/riiablo/map/Box2DPhysics.java +++ b/core/src/com/riiablo/map/Box2DPhysics.java @@ -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;