Browse Source

load mesh data and structure meshes

server-collision
FatBoy-DOTC 11 months ago
parent
commit
840dc83987
  1. 2
      src/engine/CollisionEngine/Mesh.java

2
src/engine/CollisionEngine/Mesh.java

@ -23,7 +23,7 @@ public class Mesh { @@ -23,7 +23,7 @@ public class Mesh {
public boolean MeshCollides(Line2D line, float charHeight, float charY){
//check if movement path intersects this mesh
if(!this.BoundsCollides(line))
if(!this.BoundsCollides(line) && !boundsRect.contains(line.getP1()) && !boundsRect.contains(line.getP2()))
return false;

Loading…
Cancel
Save