Explanations on ex-script-touchcube.wrl and extouchcube.java [return]

The ex-scrip-touchcube.wrl program defines a cone and a cube.
The cube changes its color if touched (right mouse button) according to the myColor interpolator node (ROUTES TS.touchtime and myClock.fraction).
The cone is continuously rotating unless the cube has more than 50% of red. The rotation is accomplished by the ENGINE OrientationInterpolator controled by XTIMER (ROUTE XTIMER.fraction).
The cone's stop is controlled by the script by means of the ROUTE SC.isRed which receives its present value of the script program.


The script program has the following statements : [Java source]

The following figure shows the events configuration :