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
7
u/okamiueru Apr 24 '13
Diagonal would still be fixed value. Sine/cosines can also be done through table lookups.... Not that this matters at all. No one in their right mind would suggest this to be a bottleneck. As for analog movement, this is also trivial to do "right".
We can only speculate if this was by design or oversight. In any case, it will make people run diagonally in a competitive setting, which makes you look 45 degrees to the side. So the lack of visibility to one side might be a balanced cost to the 1.41x speedup. Who knows :)