As an experiment, I have set up a simulated set of gears attached to a motor and rendered them with OpenGL/GLUT. At the moment the only input to the Wire network is Time
. I want to use the keyboard to control the change the speed of the motor. I would also like to detach the physics timestep from the frame rate as described in Fix your Timestep!.
This means that I need to run the Wire network from three different GLUT callbacks (keyboardMouseCallback
,idleCallback
, and displayCallback
) with three different types of inputs. I'm unclear how to integrate Netwire with the GLUT callbacks.