From 655a54ce2a4548e89c7405605a32f598a3d2ff82 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 19 Jan 2024 20:36:31 -0600 Subject: [PATCH] load mesh data and structure meshes --- src/engine/collisionEngine/Mesh.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/collisionEngine/Mesh.java b/src/engine/collisionEngine/Mesh.java index db92acd6..5942d52d 100644 --- a/src/engine/collisionEngine/Mesh.java +++ b/src/engine/collisionEngine/Mesh.java @@ -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); }