Rigidbody AddTorque unexpected behavior on one axis
I'm trying to rotate a simple rectangular rigidbody using torques, but I'm getting weird results when the rigidbody is at certain angles.
For example, when the rigidbody's initial rotation is 0, 0, 0, a torque around the world Y-Axis behaves as expected (the rigidbody rotates its centre about the y-axis). The same is true if the rigidbody's initial rotation is 0, 0, -30. However, if the initial rotation is -30, 0 ,0 then the rigidbody's rotation goes haywire and the rigidbody is spun about in all directions.
I've attached here a simple project/scene to demonstrate the problem - press play and then the "up" arrow key to make the rigidbodies rotate. The one on the left rotates using AddTorque on the world's Y-Axis, the one on the right uses Rigidbody.MoveRotation on the world's Y-Axis.
You can set the initial rotation for the rigidbodies to the values described above to see that the weird behaviour is only happening when there's an initial rotation on the X-Axis.
The behaviour on the right rigidbody in the scene is what I need to happen (by using torques, not MoveRotation).
I've been stuck on this for two days now and I'd really appreciate any help or insight that people could offer - it seems to be such a simple problem but I can't find a solution to it.
Many thanks
Your answer
![](https://koobas.hobune.stream/wayback/20220612100253im_/https://answers.unity.com/themes/thub/images/avi.jpg)