Hi, I have to rotate a Gameobject only to the x and z to 0.00f and 0.00f, but I’d like that the x angle will be the same that in the previous frame.
(so no in this way)
GameObject.Find (“player”).transform.rotation = Quaternion.AngleAxis (0.0f,Vector3.right);
GameObject.Find (“player”).transform.rotation = Quaternion.AngleAxis (0.0f,Vector3.forward);
thanks