r/programming • u/hazadess • Apr 23 '13
PathFinding algorithm, visually explained
http://qiao.github.io/PathFinding.js/visual/
2.2k
Upvotes
r/programming • u/hazadess • Apr 23 '13
View all comments
Show parent comment
30
u/Rainfly_X Apr 23 '13
It's fast enough that there is almost no penalty to throw away existing pathfinding steps between results, especially since the virtual motion of the NPC/whatever will be several orders of magnitude slower than the pathfinding. And I'm wondering what algorithm you consider preferable, where intermediate processing from previous steps isn't invalidated by the step cycle. Is there really an algorithm where you don't have to recalculate everything when the environment changes?