Basically, I want to be able to pass a ray through an object. Be it cube, sphere, or triangular prism, like this. Even terrain.
(excuse my horrible demonstration)
and get the distance between those two points.
Of course, with one ray, I can get the entering point, and I can pass a ray from that, but I don’t know how to find the end point so easily.