三维通号vr列车车门对齐站台,修改列车门动画赋值bug
This commit is contained in:
parent
5e9a3220c3
commit
58e9862729
@ -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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user