Function OffMeshLinks.GetNearest
OffMeshLinkTracer GetNearest (
point | Point to search around. |
|
float | maxDistance | Maximum distance to search. Use a small distance for better performance. |
Get the nearest link to a point.
Return
The nearest link to the point or a default OffMeshLinkTracer if no link was found. The returned struct contains both the link and information about which side of the link is closest to the point. If the end is closer than the start, then a reversed OffMeshLinkTracer will be returned.