I am working on a project in Three.js where I have a scene filled with lines. Everything is working smoothly when the mouse moves slowly, as I am using the raycaster method to check for intersections with the lines. However, the issue arises when the mouse moves quickly and skips over lines without registering them as intersections.
Is there a way in Three.js to detect all the objects that intersect the line in screenspace between the previous and current mouse positions? Are there any built-in tools or utilities that can assist with this particular problem?
My current strategy involves sampling points along the line and testing each one with the raycaster, but this does not fully address the issue at hand.