Hi all,
I tried some tests about Quaternion.Euler today, but I faced a problem.
I check the scripting API about it. Its description is “Returns a rotation that rotates z degrees around the z axis, x degrees around the x axis, and y degrees around the y axis (in that order).”
But when I tried to rotate 30 degrees around the y-axis, the correct code is
public Quaternion rotation = Quaternion.Euler(0, 30, 0);
So I want to know if I misunderstand the description or the order is wrong in the official API document.
Thanks a lot!