Support Forum

What's the alternative to Unity's FindClosestEdge?

Hi! I recently converted my project from Unity’s navmesh system to A* path finding and trying to figure out the alternative way of finding the closest edge point to a world position just like FindClosestEdge() method in Unity. I was using those to find valid cover spot for enemies. Thanks !

Hi

There is no method for finding the closest edge to a point I’m afraid, but you can use GetNearest to find the closet point on the navmesh. See https://arongranberg.com/astar/docs/usingnodes.html