I imported my gltf model and added it to scene but now if i try to move it, it wont work
var blackBox=new THREE.Scene();
var loader = new THREE.GLTFLoader();
var x=40;
var mod =new THREE.Geometry();
var mixer;
var clock=new THREE.Clock();
//load gltf model
loader.load('untitled.gltf',function(model)
{
mod = model.scene.children[0];
mixer = new THREE.AnimationMixer( model.scene );
var action = mixer.clipAction( model.animations[ 0 ] );
action.play();
model.scene.rotation.y=6;
mod.rotation.y=5;
scene.add( mod );
mod.position.x=4;
},undefined,function(error){console.error(error);});
//set position to x=4
var rt=function(){
mod.position.x=-4;
}
rt();
How can i move the mode around?