Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daniel-beard/dstarlitejava

A java implementation of the incremental heuristic search algorithm D* Lite.
https://github.com/daniel-beard/dstarlitejava

dstarlite game-development java pathfinding

Last synced: 17 days ago
JSON representation

A java implementation of the incremental heuristic search algorithm D* Lite.

Awesome Lists containing this project

README

        

DStarLiteJava
=============

A java implementation of the incremental heuristic search algorithm D* Lite.

Getting Started
=============

Import the DStarLite, Pair and State files into your project.

Example usage:

//Create pathfinder
DStarLite pf = new DStarLite();
//set start and goal nodes
pf.init(0,1,3,1);
//set impassable nodes
pf.updateCell(2, 1, -1);
pf.updateCell(2, 0, -1);
pf.updateCell(2, 2, -1);
pf.updateCell(3, 0, -1);

//perform the pathfinding
pf.replan();

//get and print the path
List path = pf.getPath();
for (State i : path)
{
System.out.println("x: " + i.x + " y: " + i.y);
}

License
=============
MIT