Your problem is that you are trying to set the Y of a Quaternion - you shouldn't fiddle with the elements of a quaternion directly - you probably mean to use the eulerAngles. The y of a Quaternion is not the rotation about the y axis.
↧