hull 7
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user