Hi im rotating a swing and i only want it to an angle of 40 and then back but at the moment the swing is just going all around.I put an IF statement in but it doesnt seem to be working
Thanks i got it working.Would you know how i rotate the seat with out moving the ropes.At the moment when i try to rotate the seat the ropes are moving aswell.
glTranslatef(0,0,-30);
drawBar();
//rotate the rope and swing
glRotatef(0.0,0,1,0);
glPushMatrix();
glTranslatef(2,0,0);
glRotatef(angle,1,0,0);