- Home /
Question by
mevsvader · May 14, 2021 at 01:20 PM ·
rotationeulerangles
please help. setting image euler angles or rotation to z > 0 snaps z rotation to 180
exactly what the title says
steeringarrow.rectTransform.localEulerAngles = new Vector3(0, 0, 90 + movement.steeringwheel*3);
i cannot find a solution anywhere
debug log shows steering wheel amount. the image i used was rotated to the side and i didnt rotate it back so i wrote 90 + in the script. heres the thing if steering whell is less than 0 the script works as it should but if its more than 0 it breaks and the z rotation snaps to 180.
already tried with quaternion, .rotation and eulerangles
screenshot-2021-05-14-at-171617.png
(398.4 kB)
Comment