PDA

View Full Version : camera movement



bramley1
04-02-2001, 07:00 AM
I have setup a camera that can orbit my scene 360 degrees. However I cannot get it to be able to zoom in or pan, regardless of what angle the camera is at.

Thanks

dan-leech
04-02-2001, 10:31 AM
Translate camera;
z: cos(angle of camera)*zoom
y: cos(angle of camera)*zoom

I write zoom because i don't remember word...

bramley1
04-02-2001, 11:17 PM
Hi
Thanks
I originally thought of that in theory, but couldnt get it working

Ill try again

Thanks

DaViper
04-03-2001, 12:11 AM
post the piece of code, in which you want to zoom in, it meks it a lot easier to help, everything else would be wild guessing

Chris