Gets the closest point on the boundary of a polygon to a given point. If the point is inside the polygon (in XZ), the Y coordinate is adjusted to the polygon surface.
the output closest point
the navigation mesh
the polygon node reference
the point to find the closest point to
whether the operation was successful
Gets the closest point on the boundary of a polygon to a given point. If the point is inside the polygon (in XZ), the Y coordinate is adjusted to the polygon surface.