#VRML V2.0 utf8 #Beispiel 6: Darstellung von Ereignissen in einer Animation mit TimeSensor / TouchSensor DEF robjekt Transform { children [ Shape { appearance Appearance { material Material { diffuseColor 0 0 1 } } geometry Box { size 3 3 3 } } ] } DEF rtimer TimeSensor { enabled FALSE loop TRUE cycleInterval 20 } DEF rengine OrientationInterpolator { key [0,.25,.5,1] keyValue [0 1 0 0, 0 1 0 2.094,0 1 0 4.188, 0 1 0 0] } Transform { translation 4 0 0 children [ Shape { geometry Text { string "Rotieren" } } DEF rotiere TouchSensor { } ] } ROUTE rtimer.fraction_changed TO rengine.set_fraction ROUTE rengine.value_changed TO robjekt.set_rotation ROUTE rotiere.isActive TO rtimer.set_enabled