Having some problem with starting an animation. My Code:
var loader = new THREE.GLTFLoader();
loader.load( gallery[current], handle_load );
let car;
function handle_load( gltf ) {
car = gltf.scene;
car.material = new THREE.MeshPhongMaterial({flatShading:false});
car.position.y = 2.9;
car.position.z = 0.2;
car.scale.set(1.9,1.9,1.9);
car.castShadow = true;
car.receiveShadow = true;
car.traverse( function ( child ) {
if ( child.isMesh ) {
child.castShadow = true;
child.receiveShadow = true;
}
} );
scene.add( car );
animate();
}
the second hour I try to activate the animation constantly something goes wrong.
When i m load this model in three.js editor, everything is fine, everything works.
Name animation in editor is JUMP