A simple implementation of the astar pathfinding algorithm from red blob games.
In order to use the pathfinder you must have a path map for it to navigate. You can
define one by implementing the PathingMap
trait, or you can use the built-in
PathMap2d
.
Example
use *;
let map = new;
let mut astar = from_size;
let path = astar.find_path.unwrap;
From the "terminal" example.