class in UltimateIsometricToolkit.Scripts.Pathfinding / Inherits from MonoBehaviour


Astar pathfinding implementation.
Astar works on a different thread for performance reasons. Please note that Unity itself is not threadsafe. Any interaction with the UnityEngine is therefore prohibited.




Astar(Heuristic heuristic)#

Instantiates a new Astar instance with a pathfinding heuristic (MaxAlongAxis, ManhattenDistance,etc.)

Public functions#

void SearchPath(INode startNode, INode endNode, float maxVerticalDistance, Action<List<Vector3>> successCallback, Action failureCallback = null)#

Searches for best path from startNode to endNode with a maximum vertical distance between each pair of nodes. Will invoke successCallback on success and failureCallback if no path was found.