pathfinding
pathfinding copied to clipboard
penalizing diagonals
Hi:
Im using this library but the problem is that when using the Diag functions sometimes it goes in diagonal even to cross a horizontal corridor.
The reason is because it has the same cost to move horizontally than diagonally, and by preference it seems to priorize diagonals.
I was wondering if it could be easy to add a cost function of sqrt(2) on diagonals.
Cheers