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
I was trying to figure out raycasting with MeshLine and found that the early exit optimization never gets called when you don't intersect the sphere. if (raycaster.ray.intersectSphere(sphere, interRay) === false) { return }
Should be: if (raycaster.ray.intersectSphere(sphere, interRay) === null) { return }
Not really a factor for most cases but for mouseover with a lot of geometry might make a difference.
The text was updated successfully, but these errors were encountered:
I was trying to figure out raycasting with MeshLine and found that the early exit optimization never gets called when you don't intersect the sphere.
if (raycaster.ray.intersectSphere(sphere, interRay) === false) { return }
Should be:
if (raycaster.ray.intersectSphere(sphere, interRay) === null) { return }
Not really a factor for most cases but for mouseover with a lot of geometry might make a difference.
The text was updated successfully, but these errors were encountered: