开发者

A* algorithm with euclidean distance

开发者 https://www.devze.com 2023-02-15 05:12 出处:网络
If I have a set of nodes with coordinates (x, y) and I have a set of node - node - cost, in this case the cost is in minute. How do I calculate the Euclidean distance assuming the 开发者_如何学运维spe

If I have a set of nodes with coordinates (x, y) and I have a set of node - node - cost, in this case the cost is in minute. How do I calculate the Euclidean distance assuming the 开发者_如何学运维speed is constant...

One metric is in minutes and while the distance using x,y is not in time metric


I personally recommend this tutorial. It taught me how to implement A* in a game I made a few years back.

Also, the wikipedia page is always good for linking! :)

0

精彩评论

暂无评论...
验证码 换一张
取 消