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.