Browse Source

add Y axis of building to mesh height

server-collision
FatBoy-DOTC 10 months ago
parent
commit
95f09a255e
  1. 2
      src/engine/gameManager/BuildingManager.java

2
src/engine/gameManager/BuildingManager.java

@ -993,7 +993,7 @@ public enum BuildingManager { @@ -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<ArrayList<Vector3f>> triPoints = mesh_triangle_points.get(mesh);
if (mesh_bounding_boxes.containsKey(mesh)) {

Loading…
Cancel
Save