public class ModelViewer : MonoBehaviour{ public Transform rotateMe; private float speed = 200.0f; //how fast the object should rotate private Vector3 axis = new Vector3(); void Update () { axis.x = Input.GetAxis ("Mouse X"); axis.y = Input.GetAxis ("Mouse Y"); rotateMe.Rotate( axis * Time.deltaTime * speed); }}