I’m simply trying to move a camera from it’s starting position and rotation, to another position and rotation. I cam move it, but can’t figure out the stupid simple code required to rotate it too. Argh, can someone please whack me upside the head and put me out of this misery??? :!:
var gameCamera : Transform;
function OnMouseDown ()
{
/* move camera to it's game position */
gameCamera.position = Vector3 (0.3233052,8.744491,7.637483);
CAMERA ROTATION GOES HERE!
/* cameras previous position is ...
-0.7878647,18.43345,-25.51621 and rotation is
44.70861,-0,-0 for later reference */
}
I know it has something to do with Quaternion stuff but I’m pulling what little hair I have left out. Grrr…