Unity 5.5.1f1 bug?

.eulerAngles = new Vector3(0, 0, transform.rotation.z);
rotates x
.eulerAngles = new Vector3(transform.rotation.x, 0, 0);
rotates x

So what’s the bug? Could you be much more descriptive?

No bug. Using transform.rotation like that makes no sense. Transform.rotation is a quaternion (4D representation) and not euler angles at all.

–Eric

1 Like