load mesh data and structure meshes

This commit is contained in:
2024-01-19 20:36:31 -06:00
parent eafe00555f
commit 655a54ce2a
+2 -2
View File
@@ -77,8 +77,8 @@ public class Mesh {
} }
public void BakeBounds(){ public void BakeBounds(){
float width = this.mesh_ref.x - this.mesh_end.x; float width = (this.mesh_ref.x - this.mesh_end.x) * 0.5f;
float height = this.mesh_ref.z - this.mesh_end.z; 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); this.bounds = new Rectangle2D.Float(this.mesh_ref.x,this.mesh_ref.z,width,height);
} }