I have this code for changing rotation of y to change direction of ball by adding relative torque. It works find for few seconds after adding relative torque but then it will just start spinning like crazy.
transform.rotation = Quaternion.Euler (new Vector3 (transform.rotation.eulerAngles.x, angle, transform.rotation.eulerAngles.z));
Any suggestion for alternative code?
Screenshot of my screen: Imgur: The magic of the Internet