When A* [seemingly] isn't enough...
Here's the problem. I have a 2D map in the form of a simple grid. I need to find the shortest distance from point A to point B. Seems easy so far...
The problem is that movement is not restricted to 8 directions! It seems that this would be a common problem, and it also seems that the solution to this problem should start with the A* path. Can anyone give me a nudge in the right direction?
A* doesn't place any restriction on the number of paths between the nodes. What exactly is your problem?
You can try A* in 8 directions and then add path smoothing (i.e. remove nodes from the path if doing so still represents a valid path).
Quote:Original post by 020644
Units can move at any angle. Sorry if I'm being dense!
Not if your map is a 'simple grid'.
How about you explain, nice and explicitly how your map is structured...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement