Shouldn't an object orbit and not spin when it first translated and then rotated?

68 Views Asked by At

I understand that the transform order matters, but I don't understand why the object in this tutorial on minute 7:00 spins and not orbits.

Line 156 applies rotation and then translation on Model matrix MathHelper::matrixMul4x4(M, transMatrix, rotYMatrix). My understanding is that when rotation around Y is first applied, it sets a new frame, as shown in figure 2. After that, moving by -1 unit along Z should have been happened along new Z, as shown in image 3. This means that the object should orbit and not spin. What am I missing here?

enter image description here

0

There are 0 best solutions below