- Home /
Understanding euler angles and how to properly clamp rotation.
When rotating any object around the Z axis I get what I expect. Euler angles will go from 0° to 360° and wrap around again.
When rotating around the X axis the Editor value displays what you would expect however the transform.eulerAngles goes from 0° to 90° then back down to 0° then jumps to 360° then down to 270° then back up to 360°. When going past 90° to 270° the Y and Z values jump to 180°.
Eventually I will clamp the X and Z values to not rotate more than 20° but before I do that I need to understand what is going on. Why the sudden jump in values when X is rotated more than 90°?
Your answer
Follow this Question
Related Questions
Euler Angles problem 1 Answer
rotate game object with eurle angles , 1 Answer
Trying to Clamp x rotation for flight simulation game 0 Answers
Clamping rotation undesired effects. 1 Answer
Transform.eulerAngles. x issues 3 Answers