Advertisement

Not sure how to do this...

Started by April 10, 2003 03:38 PM
0 comments, last by Brian Jones 21 years, 10 months ago
I want to add "rising and lowering" capabilities to my camera class. In order to do this, should I get the cross product of the (view - position)vector and the strafe vector and just times the result by a scalar or just mulitply the up vector by a scalar and add the result to the view and positions ''y'' component?
I don't have a signature
Is your camera looking at the origin, or at some other object? If you''re looking at an object not located at the origin, you''re going to want to translate the camera along a vector that is a scalar multiple of the up vector. Be aware that if you want to still be looking at the same object after the upward or downward motion, you will also have to rotate the camera.

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.
Graham Rhodes Moderator, Math & Physics forum @ gamedev.net

This topic is closed to new replies.

Advertisement