Method ClipTo
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
ClipTo(float)
Shortens the ray to end at this hit and carries on, so that only closer shapes are reported afterwards.
public static RaycastAction ClipTo(float fraction)Parameters
fractionfloat-
The fraction reported for this hit.
Returns
- RaycastAction
-
The action.
Remarks
Returning this from every hit gives a closest-hit search.