- Home /
Question by
n3v3r001 · Jun 23, 2015 at 12:18 PM ·
pathfinding
A* Pathfinding (from Aron Granberg) - how to find nearest target
Hello!
I use the a* Project from aron granberg. My Units move nicely! But now i want to check wich target is the nearest, to walk just to the nearest target.
I dont want to use just a calculation of the distance. I want to use the precalculated path to the Targets, to get the nearest one.
But i dont find some functions in a* to just calculate the length of a path. Someone has a idea?
Thanks!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613201302im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
where can i learn c# pathfinding? 4 Answers
Ray-based pathfinding 4 Answers
Help with 2d enemy ai 0 Answers
Help with pathfinding function! 2 Answers
NavmeshActor slowing near corners 0 Answers