Okay; so I was looking at the unity script reference pages and I wanted to know how I would rotate an object on the z axis. I'm trying to achieve a sideways rotation (is roll a better word?) for a first person maze where you can rotate the level itself. the problem is that the C & V keys result in the object spinning as if I was using the mouse to spin myself in a circle.
var Player : Transform;
var RotateSpeed = 20;
function Update () {
if (Input.GetKey ("z"))
// spin the player around the world origin at 'RotateSpeed' degrees/second.
transform.RotateAround (Player.position, Vector3.right, RotateSpeed * Time.deltaTime);
if (Input.GetKey ("x"))
transform.RotateAround (Player.position, Vector3.left, RotateSpeed * Time.deltaTime);
if (Input.GetKey ("c"))
transform.RotateAround (Player.position, Vector3.down, RotateSpeed * Time.deltaTime);
if (Input.GetKey ("v"))
transform.RotateAround (Player.position, Vector3.up,RotateSpeed * Time.deltaTime);
}