Orientation Interpolator Example


  Transform {
     rotation  0 1 0 3.14
     children [
        DirectionalLight {
           ambientIntensity 0.75
        }
        DEF ORIINT OrientationInterpolator {
           key [0, 0.25, 0.5, 0.75, 1]
           keyValue [   0 1 0 0, 
                 0 1 0 1.57,
                 0 1 0 3.14,
                 0 1 0 4.71,
                 0 1 0 6.28 ]
        }
        Transform {
           translation 0 0.5 -10
           children [
              Shape {
                 appearance Appearance {
                    material Material {
                       emissiveColor 1 1 1
                    }
                 }
                 geometry Text {
                    string ["OrientationInterpolator"]
                    fontStyle FontStyle {
                       justify "MIDDLE"
                    }
                 }
              }
           ]
        }   
        DEF ORITGT Transform {
           translation 0 3 -10
           children [
              Shape {
                 appearance Appearance {
                    material Material {
                       diffuseColor 0 1 0 
                    }
                 }
                 geometry Box {
                 }
              }
           ]
        }
     ]
  }