The navigation mesh to use for the search.
The start position in world space.
The end position in world space.
The list of polygon node references that form the path, generally obtained from findNodePath
The maximum number of points to return in the straight path. If null, no limit is applied.
The straight path
This method peforms what is often called 'string pulling'.
The start position is clamped to the first polygon node in the path, and the end position is clamped to the last. So the start and end positions should normally be within or very near the first and last polygons respectively.