Is there a method in three.js using the GLTF loader to access an object for transformations after it has been loaded?
It seems like attempting this approach does not yield results
gltf.scene.position.set(10,10,10)
Sample Code:
function getObject(){
var loader = new THREE.GLTFLoader();
loader.load('sample.gltf',
function ( gltf ) {
scene.add( gltf.scene );
},
function ( xhr ) {
//console.log( ( xhr.loaded / xhr.total * 100 ) + '% loaded' );
},
function ( error ) {
//console.log( 'An error occurred' );
}
);
}
getObject()
// Perform Translation
gltf.scene.position.set(10,10,10)