|
|
|
@ -71,9 +71,9 @@ public class PathingUtilities {
@@ -71,9 +71,9 @@ public class PathingUtilities {
|
|
|
|
|
} |
|
|
|
|
return closest; |
|
|
|
|
} |
|
|
|
|
public static ArrayList<Node> getPath(AbstractCharacter mover, Vector3fImmutable start, Vector3fImmutable goal){ |
|
|
|
|
public static ArrayList<Node> getPath(AbstractCharacter mover, Vector3fImmutable goal){ |
|
|
|
|
ArrayList<Node> path = new ArrayList<>(); |
|
|
|
|
Node startNode = getClosestNode(start); |
|
|
|
|
Node startNode = getClosestNode(mover.loc); |
|
|
|
|
Node goalNode = getClosestNode(goal); |
|
|
|
|
if(goalNode == null) |
|
|
|
|
move(mover,goal); |
|
|
|
|