Browse Source

hull 7

hull7
FatBoy-DOTC 1 year ago
parent
commit
13ee088b89
  1. 2
      src/engine/gameManager/BuildingManager.java

2
src/engine/gameManager/BuildingManager.java

@ -1047,7 +1047,7 @@ public enum BuildingManager {
Path2D.Float translatedPath = new Path2D.Float(path); Path2D.Float translatedPath = new Path2D.Float(path);
AffineTransform offset = AffineTransform.getTranslateInstance(building.loc.x , building.loc.y); AffineTransform offset = AffineTransform.getTranslateInstance(building.loc.x , building.loc.y);
translatedPath.transform(offset); 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); translatedPath.transform(rotate);
building.meshes.add(translatedPath); building.meshes.add(translatedPath);
} }

Loading…
Cancel
Save