Within the scene, there are several cylinders present. Upon user interaction with specific points, I am generating a line (THREE.Line) connecting those points. However, I am facing an issue with checking for intersections between the line and the cylinders (THREE.Mesh).
The current approach seems to be ineffective.
myLine.intersectObjects(arrayOfCylinders, true)
Would it be feasible to create a ray along the line? If so, I could utilize the following:
myRay.intersectObjects(arrayOfCylinders, true)
Thank you!