From 998286de8dd3c2e6467643b393e44898d3f355b0 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Thu, 15 Nov 2018 14:53:14 +0400 Subject: [PATCH] Ensure balls collide with the shield --- core/src/com/me/brickbuster/entity/Ball.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/com/me/brickbuster/entity/Ball.java b/core/src/com/me/brickbuster/entity/Ball.java index 79cc6a1..772b869 100644 --- a/core/src/com/me/brickbuster/entity/Ball.java +++ b/core/src/com/me/brickbuster/entity/Ball.java @@ -84,7 +84,9 @@ public class Ball extends Entity implements PhysicsBody, CollisionListener { ballFixture.density = 1f; ballFixture.filter.categoryBits = EntityType.BALL; - ballFixture.filter.maskBits = EntityType.BOUNDARY | EntityType.BRICK | EntityType.PADDLE | EntityType.POWER_UP; + ballFixture.filter.maskBits = EntityType.BOUNDARY | EntityType.BRICK + | EntityType.PADDLE | EntityType.POWER_UP + | EntityType.SHIELD; body = state.world.createBody(ballBody); body.createFixture(ballFixture);