You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The metric distanceToRay is added for points since it is already computed for the ray-points intersection test.
For meshes, it would be necessary to compute is separately although most use cases don't require it. So to avoid unnecessary overhead, it's better to let the app compute the distance.
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
Raycaster
page. #30478but it would be better (and seemingly easy) to just add this property to Intersections of all objects.
The text was updated successfully, but these errors were encountered: