Ok. I’m writing a camera class. I’ve got the basics figured out. I can position my camera anywhere I want, and I can have it point anywhere I want using a direction-vector.
The problem is this: how do I make the direction-vector jaw and pitch? The vector is normalized. I basically need to rotate it along the Y-axis at point (0,0,0) for the jaw, and around the X-axis (at the same point) for the pitch, right?
I’ve spent hours trying to figure this out using tons of trigonometry, but I can’t seem to get it to work. This should be a trivial thing, so I hope there’s a simple (and fast!) way to do it.