Quaternion.Euler() returns wrong value

Please take note of the code tags .

What you posted might “work” in the sense that z will have the value that you set it to, but it won’t produce the actual rotation that I think you expect it to produce: It does not represent a rotation of zrot degrees around the Z axis, and in fact is probably not a valid rotation at all. Did you try actually rotating an object using that Quaternion?

2 Likes