var rotation : Vector3 = transform.rotation.eulerAngles; var rotX = rotation.x; rotation *= Mathf.Deg2Rad; rotation.x = rotX; rotation.z = 0;