I have an OpenGL scene set up like so:
- The scene has a single camera. The camera cannot rotate but it can zoom and pan.
- The camera is looking directly at a textured quad.
- I can get the raycasting result that's generated from the mouse cursor position extending to the quad.
I need the camera to center on the mouse cursor position when I press a keyboard button. How do I do this? FYI the quad most remain in place but the camera can move around.