Key Animation

We want to animate a key going down and up. The input for the rotation looks like:

Time Graph

The keys down (2) and up (8) on the numeric keypad move the cube up and down. It is necessary to be in the select mode Select because in the other case the viewer catches all events. Let's have a look at the source and the inventor file.

Key Scene Graph

We might use a similar approach for the helical keyboard. Another approach use a callback function of a SoTimerSensor to update the rotation.
Jens Herder