Game Development Community

Orbit Mode & Camera rotation

by Sylvain · in Technical Issues · 07/31/2007 (8:38 am) · 2 replies

Hi everyone !
After doing some reading, I've been able to use the orbit mode for the camera, but I've still a couple of questions/issues, one of these is :
for the moment I have the camera pointing at a particular object, but I would like it pointing the opposite direction. Mathematically speaking, this means rotating the camera 180 degrees around its local z axis - I believe.
Do you have any idea on how this could be done ?
Thanks !
Sylvain

#1
08/01/2007 (5:26 am)
After some thinking, I might not need to switch to orbit mode in order to achieve what I want : the solution may be stayig in fly mode and increasing the distance betwee the camera and the point it is attached to (center of the player object, right ?)
I guess that I'll need to modify setFlyMode() in camera.cc ...
Do you know how I could do that (just ideas, not necessarily pieces of code !) ?
#2
08/02/2007 (3:52 am)
All right, I found a way : in orbit mode, just need to use negative distances ! I tried that earlier, but it didn't work ... must have done something the wrong way !