Yonaba / Jumper

Fast, lightweight and easy-to-use pathfinding library for grid-based games
http://yonaba.github.io/Jumper
MIT License
607 stars 122 forks source link

Update Path class to allow different distances #47

Open StefansM opened 8 years ago

StefansM commented 8 years ago

Rather than always using the Euclidean distance metric to find the distance between nodes in the path, this commit adds an optional parameter to the getPath method to set the distance metric.