prints removed
This commit is contained in:
@@ -393,22 +393,17 @@ private static final int cellGap = 4;
|
|||||||
//TODO figure out best way to decide if a walking point intersects a mesh collider from a building
|
//TODO figure out best way to decide if a walking point intersects a mesh collider from a building
|
||||||
Building building = BuildingManager.getBuildingAtLocation(point);
|
Building building = BuildingManager.getBuildingAtLocation(point);
|
||||||
|
|
||||||
if(building == null) {
|
if(building == null)
|
||||||
printToPlayers(point, "No Building Found At: " + point);
|
|
||||||
return false;//no building at this location means nothing obstructing the walking path
|
return false;//no building at this location means nothing obstructing the walking path
|
||||||
}
|
|
||||||
|
|
||||||
if(!collidesWithBuilding(building,point)) {
|
if(!collidesWithBuilding(building,point))
|
||||||
printToPlayers(point, "No Building Collision At: " + point);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
if(Regions.getRegionAtLocation(point) != null) {
|
if(Regions.getRegionAtLocation(point) != null)
|
||||||
printToPlayers(point, "Region Found At: " + point);
|
return false;
|
||||||
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
printToPlayers(point, "Path Blocked At: " + point);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean collidesWithBuilding(Building building, Vector3fImmutable end){
|
private static boolean collidesWithBuilding(Building building, Vector3fImmutable end){
|
||||||
|
|||||||
Reference in New Issue
Block a user