diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 65008fd6..8ca12d26 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -1047,7 +1047,7 @@ public enum BuildingManager { Path2D.Float translatedPath = new Path2D.Float(path); AffineTransform offset = AffineTransform.getTranslateInstance(building.loc.x , building.loc.y); translatedPath.transform(offset); - AffineTransform rotate = AffineTransform.getRotateInstance(Math.toRadians(building.getRot().y), building.loc.x, building.loc.z); + AffineTransform rotate = AffineTransform.getRotateInstance(Math.toRadians(building.getBounds().getQuaternion().angleY), building.loc.x, building.loc.z); translatedPath.transform(rotate); building.meshes.add(translatedPath); }