- Home /
Gameobject rotating weird
I am experiencing something really weird with one of my gameobjects. When I rotate that object it would look normal, but the numbers in the inspector go really weird.
If I rotate in one direction, the number will go from 270/90/0 to 280/90/0 to 290/90/0 etc. nothing weird here. But when I rotate the other way, as soon as the X passes 270, it will suddenly go up again. But that is not all. The z-rotation suddenly jumps to -180.
This also happens when I try to hard code the Y and Z rotations, they just jump to other numbers. I noticed that the way the gameobject is rotated stays the same, but I still need a fix for this. Something is being buggy with my coded rotations, but I can't check what is wrong with it, because the wrong rotations are showing!
Any fix for this?