23 Nov 2015, 21:30
(23 Nov 2015, 20:41)Flávio San Wrote: I need to execute at the same Tick:
transform.SetRotationComponentX(angleX);
transform.SetRotationComponentY(angleY);
Because I need to Set the rotation component of the transformation matrix to only rotate around the X axis and around the Y axis.
The problem is: When I executing SetRotationComponentY in the sequence after SetRotationComponentX, the rotation around the X axis is not happening.
You need to use the method SetRotationComponentXYZ.
The method SetRotationComponentY automatically sets the other two rotation components X and Z to 0.