Description
Not all objects provide distanceToRay when raycasting.
Solution
See Points.raycast. Seems easy to add to other objects for consistency.
Alternatives
don't add
Additional context
I updated the docs in
but it would be better (and seemingly easy) to just add this property to Intersections of all objects.