Point Graph - Getting a closest point

Hi there, in a similar way to NavMesh.SamplePosition, is there any way to get the closest point on a point graph relative to a given position? Or if possibly, within the ‘volume’ of the point graph?
Thanks!

Hi

Yes. Take a look at AstarPath.active.GetNearest(point)
https://arongranberg.com/astar/docs/astarpath.html#GetNearest

Also https://arongranberg.com/astar/docs/usingnodes.html

1 Like

Wonderful, thankyou!

1 Like