04-26-2015, 12:06 AM
(This post was last modified: 04-26-2015, 12:06 AM by sphinxc0re.)
You could get rid of the sqrt function by using the octile search function.
here is an example: https://github.com/qiao/PathFinding.js/b...js#L33-L36
a friend of mine coded this. the SQRT-1 is a constant
here is an example: https://github.com/qiao/PathFinding.js/b...js#L33-L36
a friend of mine coded this. the SQRT-1 is a constant