pathfinding.finders.astar library


A* path-finder. based upon @constructor @param {object} opt @param {boolean} opt.allowDiagonal Whether diagonal movement is allowed. @param {boolean} opt.dontCrossCorners Disallow diagonal movement touching block corners. @param {function} opt.heuristic Heuristic function to estimate the distance (defaults to manhattan). @param {integer} opt.weight Weight to apply to the heuristic to allow for suboptimal paths, in order to speed up the search.