#VRML V2.0 utf8 Viewpoint { position 0 0 10 } GradientBackground { position [0 1] color [0 0.329 0.706 0 0.008 0.082] } DEF tf Transform { children [ ### a torus as invisible ghosting object ### Transform { translation 0 0 0 rotation 1 0 0 1.5708 children Shape { appearance Appearance { sortKey -1 colorMaskMode ColorMaskMode { maskR FALSE maskG FALSE maskB FALSE maskA FALSE } } geometry Torus { innerRadius 0.25 outerRadius 1.1 } } } Transform { translation 1 0 0 children Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Box { size 1 1 1 } } } Transform { translation -1 0 0 children Shape { appearance Appearance { material Material { diffuseColor 0 1 0 } } geometry Box { size 1 1 1 } } } ] } DEF ts TimeSensor { cycleInterval 10 loop TRUE } DEF oi OrientationInterpolator { key [ 0 0.25 0.5 0.75 1 ] keyValue [ 0 1 0 0, 0 1 0 1.5708, 0 1 0 3.1416, 0 1 0 4.71239, 0 1 0 0 ] } ROUTE ts.fraction_changed TO oi.set_fraction ROUTE oi.value_changed TO tf.set_rotation