Skip to main content
GameDev.net gamedev.net
🔒 Locked

quick question on rotation

Started by popendot Dec 30, 2006 at 1:51 AM 0 replies 250+ views
Original Post
popendot
popendot
hi guys. i am currently doing lesson 09 and i came across something i want to clarify. when nehe says: glRotatef(star[loop].angle,0.0f,1.0f,0.0f); // Rotate To The Current Stars Angle and star[loop].angle is between 0 and 360, will the rotation occur towards the right or left? in the example with the room he says "90 degrees to the RIGHT" and i was wondering if the direction holds true for glRotatef also.. thanks in advance.
jouley
jouley
This says this about glRotatef:
Quote:

This rotation follows the right-hand rule, so if the vector (x, y, z) points toward the user, the rotation will be counterclockwise.

Hope that answers your question!
-jouley

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.