RaycastHit.Distance

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

RaycastHit.Distance

Properties

Property NameDescription
Raycast Hit RaycastHit
Distance Output the hit distance