Based on some of the questions you were asking yesterday about rays I think I’m understanding what you are trying to achieve! Let me ask some clarifying questions while I work up some examples for dot product and fixes for your demo. ![]()
Right now you have the ray coming out from the sphere.Do we want it to come from the camera? Also if the camera angle is more than 90 degrees relative to what? Relative to the center? Relative to the sphere? Is the box just for reference point?
A lot of this by the way is on the 3D math side, so I’d also suggest reading up on some related material. I’m also a big video watcher ![]()