package engine.CollisionEngine; import engine.math.Vector3f; import engine.objects.Building; import java.awt.*; import java.awt.geom.Line2D; public class CollisionManager { public static boolean CollisionDetected(Building building, Line2D travelLine, float charHeight, float charY){ for (Mesh mesh : building.buildingMeshes) if(mesh.MeshCollides(travelLine,charHeight,charY)) return true; return false; } }