From 13ee088b8936b195917fd5dfe386d9c46077ca2f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 3 Dec 2023 10:08:41 -0600 Subject: [PATCH] hull 7 --- src/engine/gameManager/BuildingManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }