Page 2 of 2

Posted: Sun Nov 25, 2007 6:05 am
by vitek
Uh, read through every post in this thread.

Posted: Sun Nov 25, 2007 8:06 am
by humbrol
thought he had a seperate thread somewhere, since the code he lists i still get the model flipping upside down and a jog on the camera

Posted: Sun Nov 25, 2007 7:41 pm
by vitek
You complained that your code didn't compile. I'm telling you why it doesn't. You never complained about the 'model being flipped upside down' or a 'jog on the camera'.

If you want to make the camera lean to one side, you change the up vector for the camera. That is all there is to it. If you make the up vector point straight down, as in his example, then the entire scene will seem upside down... kinda like when you stand on your head.

As has been mentioned before, the FPS camera isn't perfect. It doesn't handle an up vector rotation very well. If you want to be able to lean the camera to one side and have it perform correctly, you'll need to modify the camera code, or make a copy and change that.

Travis