I’m implementing a project in OpenGL and have a few questions in line with that.
I have a cube with some texture bound to its top face: I would like to rotate the cube about its Y-axis. I’m aware that this would need some kind of a fixed point rotation i.e. I translate the center of the cube to origin, then rotate the cube at origin and then translate it back. But my cube is of unit length dimensions, so its center comes out as (0,0,0). The cube is drawn at (1.1,0.8,-2.0). I’m confused with this. I tried the following as well-
The cube seems to rotate about its Y-axis but its shifting its position slowly.
Any idea why this is happening ?
Thanks in advance.