Skip to content

A simple A* 3D path-finding implementation for java

License

Notifications You must be signed in to change notification settings

hax0r31337/Astar3d

Repository files navigation

Astar3d

A simple A* 3D path-finding implementation for java

Easy A* (star) Pathfinding
Recode from python to java

Usage

final SimpleWorldProvider worldProvider = new SimpleWorldProvider();
worldProvider.addWall(new Cell(6, 6, 3));
worldProvider.addWall(new Cell(6, 5, 4));

final Pathfinder pathfinder = new Pathfinder(new Cell(10, 7, 7), new Cell(1, 1, -1), Pathfinder.COMMON_NEIGHBORS, worldProvider);
final ArrayList<Cell> path = pathfinder.findPath();
for(Cell cell : path) {
    System.out.println(cell);
}

About

A simple A* 3D path-finding implementation for java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages