Repository for lakemenbane
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
463 B

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;
}
}