ThreeJS - Intersection of a line and sphere
问题 I have two objects on my scene: a red line and a sphere. While camera rotating/zooming/moving, I need to check the following: Does the line intersects with the sphere looking from the current position of the camera (please see images below)? Please use this JS fiddle that creates the scene on the images. I know how to find the intersection between the current mouse position and objects on the scene (just like this example shows). But how to do this in my case? JS Fiddle Code: /** * PREPARE