Browse Source

load mesh data and structure meshes

server-collision
FatBoy-DOTC 10 months ago
parent
commit
b6b5db41bd
  1. 8
      src/engine/db/handlers/dbBuildingHandler.java

8
src/engine/db/handlers/dbBuildingHandler.java

@ -942,10 +942,10 @@ public class dbBuildingHandler extends dbHandlerBase {
while (rs.next()) { while (rs.next()) {
int meshID = rs.getInt("meshId"); int meshID = rs.getInt("meshId");
if(BuildingManager.mesh_bounding_boxes.containsKey(meshID) == false){ if(BuildingManager.mesh_bounding_boxes.containsKey(meshID) == false){
float endX = Float.parseFloat(rs.getString("end").split(";")[0]); float endX = Float.parseFloat(rs.getString("mesh_end_point").split(";")[0]);
float endZ = Float.parseFloat(rs.getString("end").split(";")[1]); float endZ = Float.parseFloat(rs.getString("mesh_end_point").split(";")[1]);
float refX = Float.parseFloat(rs.getString("ref").split(";")[0]); float refX = Float.parseFloat(rs.getString("mesh_ref_point").split(";")[0]);
float refZ = Float.parseFloat(rs.getString("ref").split(";")[1]); float refZ = Float.parseFloat(rs.getString("mesh_ref_point").split(";")[1]);
Vector2f topLeft = new Vector2f(refX,refZ); Vector2f topLeft = new Vector2f(refX,refZ);

Loading…
Cancel
Save