converting a mouse click to a ray
- by Will
I have a perspective projection. When the user clicks on the screen, I want to compute the ray between the near and far planes that projects from the mouse point, so I can do some ray intersection code with my world.
I am using my own matrix and vector and ray classes and they all work as expected.
However, when I try and convert the ray to…