Is there a return for the distance a raycast traveled to hit an object?
I saw this in the scripting manual but the description doesn’t sound right…
Is there a return for the distance a raycast traveled to hit an object?
I saw this in the scripting manual but the description doesn’t sound right…
That’s the return right there.
Ah, good… so this eh?
Structure used to get information back from a raycast.
RaycastHit.distance
Description
The distance from the ray’s origin to the impact point.