#VRML V2.0 utf8 Viewpoint { position 0 0 10 } # un créée un Trsform pour controle l'orientation DEF XForm Transform { children [ # un cube Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Box {} } # Une animation en deux secondes. DEF TimeSource TimeSensor { cycleInterval 2.0 startTime 0 # il démarre tout de suite loop TRUE # en boucle, l'animation sera donc en boucle } # Un tour complet sur l'axe Y DEF Animation OrientationInterpolator { key [ 0, .33, .66, 1.0 ] keyValue [ 0 1 0 0, 0 1 0 2.1, 0 1 0 4.2, 0 1 0 0 ] } ] } # Les routes ROUTE TimeSource.fraction_changed TO Animation.set_fraction ROUTE Animation.value_changed TO XForm.rotation