From 42ab426befe9fa3a0820c9eb8843d73d67dcc504 Mon Sep 17 00:00:00 2001 From: Aurelien Gateau Date: Wed, 26 Jul 2023 23:11:23 +0200 Subject: [PATCH] Fix obstacle shadows not being drawn at the correct angle --- core/src/com/agateau/pixelwheels/obstacles/Obstacle.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/com/agateau/pixelwheels/obstacles/Obstacle.java b/core/src/com/agateau/pixelwheels/obstacles/Obstacle.java index cccf474d..97a2f96d 100644 --- a/core/src/com/agateau/pixelwheels/obstacles/Obstacle.java +++ b/core/src/com/agateau/pixelwheels/obstacles/Obstacle.java @@ -86,7 +86,6 @@ public void draw(Batch batch, ZLevel zLevel, Rectangle viewBounds) { mBodyRegionDrawer.draw(mBody, mRegion); } else { mBodyRegionDrawer.setBatch(batch); - mBodyRegionDrawer.setZ(-0.1f); mBodyRegionDrawer.drawShadow(mBody, mRegion); } }