when i rotate a character in y and z ( together ), the character ends up facing the ground. When i try to rotate each axis separately, it works fine, but together it does not work. Would you know how to fix this?
Here is my code :
transform.Rotate( (-Vector3.forward * 10 * Input.GetAxis("Horizontal")) + (Vector3.up * speedRight * Input.GetAxis("Horizontal")) );
Thanks a lot