mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-19 16:57:20 +07:00
Enabled bullet flag for missiles and changed to sensors to disable collision
This commit is contained in:
parent
efc6a5c0e4
commit
54216795f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user