I have a camera class that is missing some functionality.
I need to give it the ability to, given a direction, or a point to look at, will rotate the camera left/right and up/down to look at this point or along this direction, without causing gimbal lock.
lets, say I move the camera to (10,10,10).
I want the camera to point at (0,0,0).
By normalizing the vector , I find that the direction I want to look along is (-0.577,-0.577,-0.577). We'll call this "Forward".
What I want to be able to do, is compute the local "Up" and "Right" vectors which are perpendicular to Forward.
How do I do this?