From 95f09a255e88682f39769cd831b9c813c40c00d9 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 5 Jan 2024 22:41:41 -0600 Subject: [PATCH] add Y axis of building to mesh height --- src/engine/gameManager/BuildingManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 12a0c904..af98a462 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -993,7 +993,7 @@ public enum BuildingManager { return; //no data for this mesh Mesh generatedMesh = new Mesh(); - generatedMesh.meshHeight = mesh_heights.get(mesh); + generatedMesh.meshHeight = building.loc.y + mesh_heights.get(mesh); ArrayList> triPoints = mesh_triangle_points.get(mesh); if (mesh_bounding_boxes.containsKey(mesh)) {