Browse Source

load mesh data and structure meshes

mesh-colliders
FatBoy-DOTC 10 months ago
parent
commit
655a54ce2a
  1. 4
      src/engine/collisionEngine/Mesh.java

4
src/engine/collisionEngine/Mesh.java

@ -77,8 +77,8 @@ public class Mesh { @@ -77,8 +77,8 @@ public class Mesh {
}
public void BakeBounds(){
float width = this.mesh_ref.x - this.mesh_end.x;
float height = this.mesh_ref.z - this.mesh_end.z;
float width = (this.mesh_ref.x - this.mesh_end.x) * 0.5f;
float height = (this.mesh_ref.z - this.mesh_end.z) * 0.5f;
this.bounds = new Rectangle2D.Float(this.mesh_ref.x,this.mesh_ref.z,width,height);
}

Loading…
Cancel
Save