Question by
munewer · Nov 27, 2020 at 09:09 AM ·
rotationdegreeslocaleulerangles
localEulerAngles command does not work well..
Hi to all, I try to control my object's rotation by using the localEulerAngles command. However, ıt did not work well. When the object rotates 0, 0, 90 angles in the x, y, z coordinate, command give me different angle like 270. It does not give me the same angle as shown in the inspector panel. How can I fix that problem?
if (transform.localEulerAngles.x == 0 && transform.localEulerAngles.y == 0 && transform.localEulerAngles.z == 90) {
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613020631im_/https://answers.unity.com/themes/thub/images/avi.jpg)