Proportional speed movement between mouse and cube
- by user1350772
Hi i´m trying to move a cube with the freeglut mouse "glutMotionFunc(processMouseActiveMotion)" callback, my problem is that the movement is not proportional between the mouse speed movement and the cube movement.
MouseButton function:
#define MOVE_STEP 0.04
float g_x=0.0f;
glutMouseFunc(MouseButton);
glutMotionFunc(processMouseActiveMotion);
…