RaycastHit.distance Manual     Reference     Scripting  
Scripting > Runtime Classes > RaycastHit
RaycastHit.distance

var distance : float

Description

The distance from the ray's origin to the impact point.

See Also: Physics.Raycast, Physics.Linecast, Physics.RaycastAll.