After creating a 3D cube that rotates clockwise and anti-clockwise on the Y-axis when pressing the left and right keys respectively, and then rotates on the X-axis when pressing the up key, I encountered an issue.
The problem lies in the rotational point of origin. When attempting to rotate the cube on the X-axis after rotating it on the Y-axis, the axis appears to have changed due to the initial rotation. This makes it seem like the cube is rotating on the Z-axis instead.
I wonder if there's a way to add the rotational point of origin to the parent element so that the axis isn't affected by the initial rotation. Is this possible?