Quantcast
Channel: Latest Questions by AaronBrownLM
Viewing all articles
Browse latest Browse all 81

Changing Y rotation in Editor also changes X and Z?

$
0
0
I notice that if I'm not running / playing the game, if I change the Y rotation of an object in my scene, it only changes the Y rotation (es expected). But if I play the game by clicking the play button in the unity editor, and I start to mess around with the XYZ values in the editor window for the object's rotation, rotating the object on the Y axis also changes the X and Z rotation values by a large amount. The object rotations correctly though, I'm just confused why the editor has to change all 3 values just to make it turn on the Y axis? I want to use a script to turn my object on the Y axis to make it look at something, but from the looks of it, I'll also need to change the X and Z values to accomplish this. Unfortunately, I have no idea how to properly calculate this. Why do all 3 values have to change just to make the object turn on the Y axis?

Viewing all articles
Browse latest Browse all 81

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>