diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/block/GarbageBlock.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/block/GarbageBlock.java b/src/main/java/fr/umlv/java/wallj/block/GarbageBlock.java index 362e680..080a739 100644 --- a/src/main/java/fr/umlv/java/wallj/block/GarbageBlock.java +++ b/src/main/java/fr/umlv/java/wallj/block/GarbageBlock.java | |||
@@ -39,7 +39,7 @@ public class GarbageBlock extends JBoxBlock { | |||
39 | Events.filter(context.getEvents(), BombExplosionEvent.class).forEach(explosion -> { | 39 | Events.filter(context.getEvents(), BombExplosionEvent.class).forEach(explosion -> { |
40 | Vec2 source = explosion.getSource().toVec2(); | 40 | Vec2 source = explosion.getSource().toVec2(); |
41 | context.getGame().getCurrentStage().getWorld().raycast((fixture, point, normal, fraction) -> { | 41 | context.getGame().getCurrentStage().getWorld().raycast((fixture, point, normal, fraction) -> { |
42 | if (isSelf(fixture)) getBody().applyForceToCenter(computeBlastForce(source)); | 42 | if (isSelf(fixture)) getBody().applyLinearImpulse(computeBlastForce(source), getBody().getWorldCenter()); |
43 | return STOP_RAYCAST; | 43 | return STOP_RAYCAST; |
44 | }, source, getPos()); | 44 | }, source, getPos()); |
45 | }); | 45 | }); |