[Papervision3D] X-axis camera rotation help
neur0vurt
neurovurt at yahoo.com
Mon Mar 17 12:09:27 PST 2008
Hi all,
I'm trying to get the camera to rotate around an object vertically (around
the x-axis), but because of the way the camera lookAt works I think it is
reorienting the camera. Thus when the camera reaches the apex of the
rotation around the object, the whole object flips in the viewport, when
actually the camera is rotating to view the object.
I'm just using this code for right now:
default_camera.y = Math.sin(angle) * 1000;
default_camera.z = Math.cos(angle) * 1000;
angle+=0.1;
can anyone shed light on how I can get the camera to maintain a constant
orientation relative to the object?
--
View this message in context: http://www.nabble.com/X-axis-camera-rotation-help-tp16096359p16096359.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list