Choose Farthest Point in the Graph 2D

I have a enemy type which is running away from the player. How can I pick the farthest point from the player in graph?

Hi

You might be interested in https://arongranberg.com/astar/docs/fleepath.html

A simple solution (but that is kinda slow, and also ignored penalties) is to take the last element from PathUtilities.BFS. See https://arongranberg.com/astar/docs/pathutilities.html#BFS

1 Like

Thank you so much, I purchased pro version after testing free one. It deserves the price :slight_smile:

1 Like