code: function createDuckie(model, animation) {
    if (!duck.xml) throw new Error("Collada model not loaded");
  
    var source = duck.getObjects()[0]; // Ew.
    var dest = new GLGE.Object();
    dest.setScale(0.01);
    dest.setRotX(Math.PI / 2);
    dest.setRotY(Math.random() * 2 * Math.PI);
    dest.setMesh(source.getMesh());
    dest.setMaterial(source.getMaterial());
    dest.setLocX(model.attributes.x);
    dest.setLocY(model.attributes.y);
  
    // Start the bobbing at a random frame so each duck bobs independently.
    dest.setAnimation(animation);
    dest.animationStart = new Date().getTime() - Math.floor(Math.random() * 1000);
  
    return dest;
  }
docs: Duck Object Creation ====================  A cheesy way to clone COLLADA objects until GLGE supports this.