- Home /
iTween.RotateFrom and Euler angles
I want to rotate a game object 180º on the X axis using iTween.RotateFrom. I just discovered what Euler angles are and that if I rotate by 180º on the X axis strange things happen...
This is the code
iTween.RotateFrom(gameObject,iTween.Hash("x",180,"time",.75f));
So how can rotate 180º on the X axis without some eulerian chaos going on?
Does this fail in some way, or are you just concerned about the storage values. If you do a rotation of (180,0,0) and check the eulerAngles, you will see (0,180,180). No way around it, but there are workarounds/other approaches depending on what you want to accomplish.
I simply want an object to rotate from back to front on the x axis. Is it possible with iTween?
Your answer
![](https://koobas.hobune.stream/wayback/20220613130915im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can't lock rotation of object. 0 Answers
iTween Path 2D rotation, orientToPath issue. 1 Answer
iTween Rotation not exact 0 Answers
Biped not rotating when using iTween visual path editor 0 Answers
Accessing itween variables 0 Answers