Find a path between two positions on a NavMesh.
If the end node cannot be reached through the navigation graph, the last node in the path will be the nearest the end node.
Internally:
The navigation mesh.
The starting position in world space.
The ending position in world space.
The query filter.
The result of the pathfinding operation.
If you want more fine tuned behaviour you can call these methods directly. For example, for agent movement you might want to find a node path once but regularly re-call
Find a path between two positions on a NavMesh.
If the end node cannot be reached through the navigation graph, the last node in the path will be the nearest the end node.
Internally: