|
|
|
@ -993,10 +993,13 @@ public enum BuildingManager {
@@ -993,10 +993,13 @@ public enum BuildingManager {
|
|
|
|
|
if(meshData.meshID == 0) |
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
int degrees = (int)Math.toDegrees(building.getBounds().getQuaternion().angleY); |
|
|
|
|
|
|
|
|
|
Mesh generatedMesh = new Mesh(); |
|
|
|
|
generatedMesh.mesh_end_point = new Vector3f(building.loc.x,building.loc.y,building.loc.z).add(meshData.loc).add(meshData.endPoint); |
|
|
|
|
generatedMesh.mesh_ref_point = new Vector3f(building.loc.x,building.loc.y,building.loc.z).add(meshData.loc).add(meshData.refPoint); |
|
|
|
|
generatedMesh.mesh_location = new Vector3f(building.loc.x,building.loc.y,building.loc.z).add(meshData.loc); |
|
|
|
|
|
|
|
|
|
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); |
|
|
|
|
generatedMesh.mesh_max_y = building.loc.y + meshData.maxY; |
|
|
|
|
generatedMesh.mesh_min_y = building.loc.y + meshData.minY; |
|
|
|
|
generatedMesh.mesh_scale = meshData.scale; |
|
|
|
@ -1005,7 +1008,7 @@ public enum BuildingManager {
@@ -1005,7 +1008,7 @@ public enum BuildingManager {
|
|
|
|
|
generatedMesh.parent_structure_id = building.meshUUID; |
|
|
|
|
generatedMesh.parentUUID = building.getObjectUUID(); |
|
|
|
|
generatedMesh.AdoptTriangles(building.getBounds().getQuaternion().angleY); |
|
|
|
|
generatedMesh.MakeBounds(building.getBounds().getQuaternion().angleY); |
|
|
|
|
generatedMesh.MakeBounds(); |
|
|
|
|
building.buildingMeshes.add(generatedMesh); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|