saibot

06-10-2010, 12:11 PM

I'm stuck at circular motion

I mean how do I rotate a point like a wheel?

I tried to rotate whit

glRotatef(angle,cos(angle),sin(angle),0.0) but is rotating like an atom and only at the end for 1 sec is rotating like I want to be

I discovered now how

You only need to change angle to 180:

glRotatef(180,cos(angle),sin(angle),0.0)

I mean how do I rotate a point like a wheel?

I tried to rotate whit

glRotatef(angle,cos(angle),sin(angle),0.0) but is rotating like an atom and only at the end for 1 sec is rotating like I want to be

I discovered now how

You only need to change angle to 180:

glRotatef(180,cos(angle),sin(angle),0.0)