hers is a empty scene which only has a “Main Camera”:
When I set Camera’s eulerAngles.x (in Inspector) to 88,and then Play,its eulerAngles.x change to 90!
How did this happen?And How to avoid this?
thx!
Does anybody have the same experience?bow
The conversion from quaternions (which Unity uses for rotations internally) to euler angles is not completely precise around (90,0,0) and some other angles I don’t remember. The conversion the other way - from euler angles to quaternion - is pretty precise though. Changes are that the angle when you press play still corresponds to 88, but it just reads out as 90.
Due to the imrpecise quaternion-euler conversion, you should avoid reading euler angles and then use those read values for setting the euler angles again.
Rune
so it is…