I'm facing an issue with preventing the destruction of my object after loading it.
var loader = new THREE.ColladaLoader();
var rescue;
loader.load(
'Improved_Person_Maker_better_quality.dae',
function(collada) {
scene.add(collada.scene);
collada.scene.position.set(-25, 1, 25);
collada.scene.rotation.x = -Math.PI / 2;
rescue = collada.scene;
},
function(xhr) {
console.log((xhr.loaded / xhr.total * 100) + '% loaded');
}
);
rescue.position.set(-20, 1, 25);
Unfortunately, the last statement is not feasible as the loaded mesh no longer exists. Is there any way to rescue collada.scene?