#VRML V2.0 utf8 # 5.1 Zwischenschritt: Verschieben einer Wand Background { skyColor 0.35 0.7 1 } DEF Kamera Viewpoint { fieldOfView 0.5 position -10 20 60 orientation -1 -1 0 0.5 } # Die Wand: DEF Wand Transform { children Shape { appearance Appearance { material Material {diffuseColor 1 1 0} } geometry Box { size 10 0.3 20 } } } # Die Uhr, die die Animation steuert (wiederholte Zeitschleifen): DEF Clock TimeSensor { cycleInterval 10.0 loop TRUE } # Die Aenderung der Position: DEF Wanderer PositionInterpolator { key [ 0.0 0.16 0.33 0.5 0.66 0.83 1.0 ] keyValue [ 0 -10 0 , 4 -6 0, 4 0 0, 0 4 0, -4 0 0, -4 -6 0, 0 -10 0 ] } # Die Verdrahtung: ROUTE Clock.fraction_changed TO Wanderer.set_fraction ROUTE Wanderer.value_changed TO Wand.set_translation