I’m working on a camera that will mimic the style of the ‘Descent’ series by Interplay.
(360o rotation and movement) To this point, I can move along a single Y plane, but can’t seem to figure out the equation for variable Pitch. I am already storing pitch in cam->Pitch for rotation.
I know I can’t just add Y in there with a sin() on the pitch, because that will throw my
other values off kilter. Can anyone point me in the right direction and/or give me a
good url for other geom stuffs.
The problem I’m having is solving for the new location, not the rotation. The above
calc I use will not solve for a varying Y (think Quake without jumping/etc) camera.
I think I’m getting closer now, by applying
sin(cam->Pitch) to the z movement, I can determine appropriate z speed.
Perhaps I’m completely off whack here… or
maybe I should just give up and use gluLookAt()