Hi I’m trying to animate a bicycle wheel’s movement. the wheel can turn its direction, however the direction is always relative to the origin of the room and not the wheel. How can I adjust the direction so that the wheel moves straight at a new angle relative to itself?
heres my movement function which works when the turning angle is 0:
glTranslatef(-cos((double)((turn_angle)*PI/180))*speed, 0, sin((double)((turn_angle)*PI/180))*speed);
thanks in advance