public float horizontalSpeed = 1.0f;
public float drag = 0.95f;
Vector3 v3Rotation = Vector3.zero;
void Update () {
if (Input.GetMouseButton(0)) {
v3Rotation.y += horizontalSpeed * Input.GetAxis("Mouse X");
}
v3Rotation *= drag;
transform.Rotate (v3Rotation);
}