Navigation.getClosestPointToSegment

Returns the navigation point closest to the given line segment. When enabling use_collision, only considers intersection points between segment and navigation meshes. If multiple intersection points are found, the one closest to the segment start point is returned.

struct Navigation
@nogc nothrow
Vector3
getClosestPointToSegment
(
in Vector3 start
,
in Vector3 end
,
in bool use_collision = false
)

Meta