i'm very bad in maths and programming and i need some help... i've made a rotation on an object as that because glRotate is fucking function (sorry for my language ):
glRotatef(rot, .0, .0, cos(rotz));
rotz += 2*M_PI;
so Now my object turn over itself ( because it used to turn with the (0.0, 0.0, 0.0) axe of rotation without the cos() ) but i don't know how to do to translate it in its trajectory...the object doesn't mind about its trajectory....
i've heard about "Normal Vector of Velocity", or something like that...
if someone can explain it for me or if you've got an other solution for my problem....
I'm sorry my English is very bad...i hop you've understood my problem, if not let me know and i'll try be more understanding...
thanks very much for your suggestions....