RaycastHit.Distance

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

RaycastHit.Distance

Properties

Property Name Description
Raycast Hit RaycastHit
Distance Output the hit distance