Find Closest Point On NavMesh- AIMoveTo Actor's Location When Actor Is Off NavMesh

This is an Unreal 5.5 Blueprint tutorial for finding the closest navigable point to X actor.

Actors can have the ‘Can Ever Affect Navigation’ bool set which will exclude their area from the generated NavMesh. This Function will find the closest point to the actor which exists on the Navmesh. If you are using AIMoveTo and getting Failed or Aborted, this could be one reason. Before using AIMoveTo, first calculate if the Navmesh exists at that point- if not, find the closest point.

If you are trying to calculate an exact point on an Actor’s BOUNDS, this tutorial can also help:

This tutorial includes a function that, given an actor and direction (from their center), returns a point on the actor’s bounds.