- Home /
Question by
toishaanpatel · Jun 18, 2020 at 02:09 PM ·
rotationeulerangles
How do I check for a negative value in eulerAngles? It is not working
So I am trying to rotate a gameobject and I limit the z rotation on each condition. For example, I rotate this object if its Z eulerAngle is < 40. This works.
However, this does not work: Only rotate if the Z eulerAngle > -10. This is essential for the game I am making, so I would appreciate if someone would help. Thank you.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613001239im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Set a relative (custom) speed to a rotation 1 Answer
How can i rotate this vector over time? 2 Answers
Character Controller change target direction in degree 1 Answer
Problems caused by non-unique Euler angle solutions 1 Answer
How to get Angle float of specific axis.(Turret clamping related). 2 Answers