Correct 3D Rotation Along Y and Z Axis? X is Perfect
This code was made based off my understanding of 3D, and how it is simulated in a 2D environment. Problem: Rotate all axes at random. After a while, stop them (not reset), and only rotate the x-axis (RX buttons). You will notice that the cuboid rotates relative to that red line, no matter the position or angle of the red line. Now reset and rotate them randomly again. This time choose to rotate only either the y axis or z axis. They do not rotate along their respective yellow and blue lines like intended. (Even the yellow and blue lines rotate incorrectly too along these unknown axes) I have no idea what is going on, but if anyone can understand the code or give me advice, help would be appreciated. https://code.sololearn.com/WxtqC6Ji8ZkL/?ref=app