|
|
|
@ -996,10 +996,12 @@ public enum BuildingManager {
@@ -996,10 +996,12 @@ public enum BuildingManager {
|
|
|
|
|
int degrees = (int)Math.toDegrees(building.getBounds().getQuaternion().angleY); |
|
|
|
|
|
|
|
|
|
Mesh generatedMesh = new Mesh(); |
|
|
|
|
|
|
|
|
|
generatedMesh.mesh_end_point = Vector3f.rotateAroundPoint(new Vector3f(building.loc.x,building.loc.y,building.loc.z).add(meshData.loc.add(meshData.endPoint)),new Vector3f(building.loc.x,building.loc.y,building.loc.z),degrees); |
|
|
|
|
generatedMesh.mesh_ref_point = Vector3f.rotateAroundPoint(new Vector3f(building.loc.x,building.loc.y,building.loc.z).add(meshData.loc.add(meshData.refPoint)),new Vector3f(building.loc.x,building.loc.y,building.loc.z),degrees); |
|
|
|
|
generatedMesh.mesh_location = Vector3f.rotateAroundPoint(new Vector3f(building.loc.x,building.loc.y,building.loc.z).add(meshData.loc),new Vector3f(building.loc.x,building.loc.y,building.loc.z),degrees); |
|
|
|
|
Vector3f buildingLoc = new Vector3f(building.loc.x,building.loc.y,building.loc.z); |
|
|
|
|
generatedMesh.mesh_location = Vector3f.rotateAroundPoint(buildingLoc.add(meshData.loc),buildingLoc,degrees); |
|
|
|
|
generatedMesh.mesh_end_point = Vector3f.rotateAroundPoint(generatedMesh.mesh_location.add(meshData.endPoint),buildingLoc,degrees); |
|
|
|
|
generatedMesh.mesh_ref_point = Vector3f.rotateAroundPoint(generatedMesh.mesh_location.add(meshData.refPoint),buildingLoc,degrees); |
|
|
|
|
generatedMesh.rectWidth = meshData.refPoint.x * 2; |
|
|
|
|
generatedMesh.rectHeight = meshData.refPoint.z * 2; |
|
|
|
|
generatedMesh.mesh_max_y = building.loc.y + meshData.maxY; |
|
|
|
|
generatedMesh.mesh_min_y = building.loc.y + meshData.minY; |
|
|
|
|
generatedMesh.mesh_scale = meshData.scale; |
|
|
|
|