When the long line are not all on the screen can’t intersect
Edit fiddle - JSFiddle - Code Playground
I don’t think this description is correct. Depending on the camera transformation, raycasting works even if only parts of a wide line are visible.
@gkjohnson Any ideas?
@gkjohnson Any ideas?
Looks like a bug in handling lines that extend offscreen – orbiting around a bit it seems like it might specifically be lines that cross the camera near plane. I’ll put it on my list of stuff to look in to.
2 Likes
I’ve made a PR with a fix for this issue in #21041. Here’s an updated version of the above fiddle pointing to the new files via githack showing that it works:
1 Like