Browse Source

shape

hull4
FatBoy-DOTC 12 months ago
parent
commit
7236ed918a
  1. 16
      src/engine/gameManager/ZoneManager.java

16
src/engine/gameManager/ZoneManager.java

@ -437,20 +437,6 @@ public enum ZoneManager { @@ -437,20 +437,6 @@ public enum ZoneManager {
}
public static void LinkNavNodes(){
for(Zone zone : getAllZones()){
for(PathingUtilities.Node node : zone.navNodes){
for(PathingUtilities.Node potentialNeighbor : zone.navNodes){
try {
for (Path2D.Float obstacle : zone.navObstacles) {
if (!node.equals(potentialNeighbor) && !obstacle.intersects(node.location.x, node.location.y, potentialNeighbor.location.x, potentialNeighbor.location.y)) {
node.neighbors.add(potentialNeighbor);
}
}
} catch(Exception e){
Logger.error("Failed To Check Neighbors Of Node In Zone: " + zone.getObjectUUID());
}
}
}
}
//TODO link nav nodes
}
}

Loading…
Cancel
Save