Open
Description
Hello
I've been using astar to make a game and I've discovered that diagonal movements are often favored although the route is longer.
From what I make out, weightings on diagonal movements should be slightly more than the given value as the diagonal distance across the sqaure is greater than up, down, left, right movements.
The solution (I think) would be to modify the node's cost to be: square root ( cost*cost + cost * cost).
However, I've not got this working correctly yet.
Does anyone have thoughts on this? Is it the correct thing to do? Is there a better solution?
Metadata
Metadata
Assignees
Labels
No labels