Demo.prototype.sceneFruitsRotating = function () {
    this.setScene('fruitsRotating');

    this.loader.addAnimation({
        object: 'backgroundEffect.color.fbo',
        shape: { type: 'SKYSPHERE' },
      });
    
    
      let objects = ["obj_kurk.obj", "obj_banana.obj", "obj_carrot.obj", "obj_myski.obj", "obj_munis.obj"];
      let objectSyncs = ["Kurk", "Bana", "Pork", "Mysk", "Muna"];
      let positions =
      [
        1.,0,0,
        -.5,0.0,-.86,
        -.5,0.0,.86,
        0,-.9,0,
        0,.9,0
       
      ];

      this.loader.addAnimation([{

        "object":{
            "name":"obj_heartsphere.obj"
          }
        ,"position":[{
          "x":0,
          "y":0,
          "z":()=>9-50*Sync.get('VegRot:heartFlash'),
        }]
        ,"color":[{
            "r":1.0,
            "g":()=>Sync.get('VegRot:heartFlash'),
            "b":()=>Sync.get('VegRot:heartFlash')
        }]
        ,"scale":[{"uniform3d":()=>2.5+10*Sync.get('VegRot:heartFlash')}]
        ,"angle":[{             
          "degreesX":()=>-getSceneTimeFromStart()*45,              
          "degreesZ":()=>getSceneTimeFromStart()*90
            
        }]
      }]);

      this.loader.addAnimation([{

        "object":{
            "name":"obj_peach.obj"
          }
        ,"position":[{
          "x":0,
          "y":0,
          "z":0,
        }]
        ,"color":[{
            "r":1.0,
            "g":1.0,
            "b":1.0
        }]
        ,"scale":[{"uniform3d":()=>1.0+Sync.get('VegRot:peachScale')}]
        ,"angle":[{             
          "degreesY":()=>-getSceneTimeFromStart()*180,              

            
        }]
      }]);

      this.loader.addAnimation([{
        "id":"rotaPeach",
        "object":null
        ,"position":[{
          "x":0,
          "y":0,
          "z":0,
        }]
        ,"color":[{
            "r":1.0,
            "g":1.0,
            "b":1.0
        }]
        ,"scale":[{"uniform3d":1.0}]
        ,"angle":[{             
          "degreesX":()=>getSceneTimeFromStart()*45,              
          "degreesZ":()=>-getSceneTimeFromStart()*90
            
        }]
      }]);

        for (let i = 0; i<objects.length;i++)
        {
          let posScaleSyncName = 'VegRot:'+objectSyncs[i]+'PosScale';
          let angleName = 'VegRot:'+objectSyncs[i]+'Angle';

          let x = positions[i*3];
          let y = positions[i*3+1];
          let z = positions[i*3+2];
          this.loader.addAnimation([{
            "id":'asdf'+i,
            "parent":"rotaPeach",
            "object":{
                "name":objects[i]
              }
            ,"position":[{
              "x":()=>x * Sync.get(posScaleSyncName),
              "y":()=>y * Sync.get(posScaleSyncName),
              "z":()=>z * Sync.get(posScaleSyncName),
            }]
            ,"color":[{
                "r":1.0,
                "g":1.0,
                "b":1.0
            }]
            ,"scale":[{"uniform3d":.35}]
            ,"angle":[{             
              "degreesX":()=>getSceneTimeFromStart()*90,              
              "degreesY":()=>Sync.get(angleName),              
            }]
          }]);
      }
}
