I made 3 sliders to rotate the object along the axes, the slider values are from 0 to 360
Rotation on the Y and Z axes works fine, but rotation on the X axis does not work correctly
At some point, I get a 180 degree rotation on the Y and Z axes when rotating on the X. At the same time, the rotation methods are exactly the same and I don’t have any special settings for the X-axis, it just doesn’t rotate the way I expect
Is there some actual problem with the orientation or are you just confused by the displayed euler angles in the inspector? There is multiple solutions when converting between quaternions and euler angles.
The bottom line is that it’s not just the display in the inspector
My object starts to flip suddenly while I’m moving the slider
According to my logs, the following happens
(x:57, y:0, z: 0)
(x:58.3, y: 180, z: 180) (x:59.2, y:180, z: 180)
(x: 60, y:0, z:0)
This behavior simply flips the object as well changes its rotation on other axes, it looks like the object is sausage.