diff --git a/src/jlmap3d/jl3dmaintainer/utils/trainControl.js b/src/jlmap3d/jl3dmaintainer/utils/trainControl.js index 3257b1848..2de6a0182 100644 --- a/src/jlmap3d/jl3dmaintainer/utils/trainControl.js +++ b/src/jlmap3d/jl3dmaintainer/utils/trainControl.js @@ -6,13 +6,13 @@ export function TrainControl(){ this.inittrain = function(scene,object,animations,mixers){ let ntracks1,ntracks2,tclip,fclip; - - ntracks2 = animations.slice(6,13); + console.log(animations); + ntracks2 = animations.slice(6,14); fclip = new THREE.AnimationClip("four",2,ntracks2); - ntracks1 = animations.slice(0,5); + ntracks1 = animations.slice(0,6); tclip = new THREE.AnimationClip("three",2,ntracks1); @@ -31,7 +31,7 @@ export function TrainControl(){ }; let points1 = []; - points1.push(new THREE.Vector3(-38.73,0.06,-8.3)); + points1.push(new THREE.Vector3(-40.90,0.06,-8.3)); points1.push(new THREE.Vector3(38.33,0.06,-8.3)); scope.toptrain.curve = new THREE.CatmullRomCurve3(points1); @@ -48,7 +48,7 @@ export function TrainControl(){ }; let points2 = []; points2.push(new THREE.Vector3(-38.73,0.06,8.8)); - points2.push(new THREE.Vector3(41.33,0.06,8.8)); + points2.push(new THREE.Vector3(40.76,0.06,8.8)); scope.downtrain.curve = new THREE.CatmullRomCurve3(points2);