Path Finding
#5

Quote:
Originally Posted by RyDeR`
View Post
And here's an implementation of Dijkstra algorithm if someone's interested.
To convert that to AStar all you need is a couple more variables.
In Dijkstra's you calculate the smallest cost to get to each node until you hit the target node, in AStar you calculate the cost of each node from the starting node, the distance between that node and the final node, then you add them together and choose the one with the lowest score to move on until you get the final node.
Reply


Messages In This Thread
Path Finding - by cessil - 02.07.2012, 03:31
Re: Path Finding - by Lorenc_ - 02.07.2012, 05:41
Re: Path Finding - by cessil - 02.07.2012, 09:54
Re: Path Finding - by RyDeR` - 02.07.2012, 19:52
Re: Path Finding - by cessil - 03.07.2012, 01:47
Re: Path Finding - by TheArcher - 07.07.2012, 19:09
Re: Path Finding - by Mauzen - 10.07.2012, 22:57

Forum Jump:


Users browsing this thread: 1 Guest(s)