Hi everyone,
I have a cube defined in GL_QUADS that I want to rotate at a distance of nRadius from the origin (0, 0, 0) about the y-axis.
I don't want it to rotate around it's local y-axis, I actually want it to "orbit" the origin at a distance of nRadius units.
How can I accomplish this? I have tried using glRotatef but I must be missing something!
Thanks so much,
-Dan
Start Free Trial