|
|
|
@ -989,7 +989,7 @@ public enum BuildingManager {
@@ -989,7 +989,7 @@ public enum BuildingManager {
|
|
|
|
|
// Add building offset and rotation to vertices
|
|
|
|
|
|
|
|
|
|
for (Vector2f vertex : meshEntry) { |
|
|
|
|
vertex.addLocal(building.getLoc().x, building.getLoc().y); |
|
|
|
|
vertex.addLocal(building.getLoc().x, building.getLoc().z); |
|
|
|
|
Vector3fImmutable rotatedPoint = new Vector3fImmutable(vertex.x, 0, vertex.y); |
|
|
|
|
rotatedPoint = Vector3fImmutable.rotateAroundPoint(building.getLoc(), rotatedPoint, building.getBounds().getQuaternion().angleY); |
|
|
|
|
vertex.set(rotatedPoint.x, rotatedPoint.z); |
|
|
|
|