Yonaba / Jumper

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

Incomplete paths #10

Open Yonaba opened 11 years ago

Yonaba commented 11 years ago

In case the destination is not reachable, getPath() fails and returns nil. It would be interesting to get an incomplete path passing an extra-arg. Actually, such a path can be retrieved from the closed list right after failing to reach the destination in the search expansion loop, but the expected result would probably differ depending on the search algorithm used.