PDA

View Full Version : Rotating a point



TheMajikOne
04-14-2001, 06:16 AM
hello, I have a problem.
I'm trying to move an object(vertex at the most basic) in a circular path. I can calculate the rotation up to the distance moved but I have no idea how to figure out the actual point.[and I need state information so I can't use built in GL calls to rotate / translate it for me].
does anyone have any idea how this works?
3 var distance equations suck.
muchos TIA
nick

Michael Steinberg
04-14-2001, 06:28 AM
You can do all that through glRotate

danny1238
04-24-2001, 12:05 PM
By using the glRotatef() function you can rotate the object counterclockwise; given a directional vector from the origin to some some point (x, y, z). This function uses 4 parameters: the angle of rotation, and the vector (x, y, z). Hope this helps.