- Home /
Why transform.eulerAngles and rotation in editor transform are different?
Why transform.eulerAngles and rotation in editor transform are different? For example, in editor rotation is {-90, 0, 243.97}, but eulerAngles of bulObj are {270, 334, 0}
This is my code: BulletObject bulObj = GetComponentInChildren(); transform.eulerAngles = new Vector3(0, -bulObj.transform.eulerAngles.x, 0); Debug.Log(bulObj.transform.rotation.eulerAngles); bulObj.transform.eulerAngles = new Vector3(bulObj.transform.eulerAngles.x, bulObj.transform.eulerAngles.y, 0);
Your answer
![](https://koobas.hobune.stream/wayback/20220612145140im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Use a single rotation axis of a freely rotating object 1 Answer
Camera viewport transformation from one world to the rotated world. 1 Answer
I can't set the rotation of an object, either with scripts or directly in the editor. 1 Answer
How do you smoothly transition/Lerp into a new rotation? 3 Answers