This commit is contained in:
sunzhenyu 2019-11-11 15:16:18 +08:00
parent e805a97a6d
commit f5de76ff63
3 changed files with 5 additions and 4 deletions

View File

@ -153,6 +153,7 @@ export function Jl3dDriving(updatemmi,sound,translation) {
if (trainlisttest) {
for (let tl = 0; tl<data.body.length; tl++) {
code = data.body[tl].id;
console.log(data.body[tl]);
if(trainlisttest.list[code].speed != data.body[tl].v){
trainlisttest.list[code].speed = data.body[tl].v;

View File

@ -9,7 +9,7 @@ export function UpdateTrain(camera,traindata,control){
if(traindata.group.children[0].progress != null){
let trainmodel = traindata.group.children[0];
console.log(trainmodel.speeds);
if(trainmodel.speeds > 0 && trainmodel.speeds){
let speed = null;
// console.log(traindata.group.children[0].progress);

View File

@ -269,7 +269,7 @@ export function RailList(){
let directoffset1 = standsdata[n].position.x-64-scope.linkrail[linklist[j].code].lineleft.points[0].x;
let directoffset2 = standsdata[n].position.x+64-scope.linkrail[linklist[j].code].lineleft.points[0].x;
stop.direct1.percent = directoffset1/lengthfacts;
stop.direct2.percent = directoffset1/lengthfacts;
stop.direct2.percent = directoffset2/lengthfacts;
console.log(scope.linkrail[linklist[j].code]);
console.log("sectoffsetleft");
console.log(standsections[i].leftStopPointOffset);
@ -296,10 +296,10 @@ export function RailList(){
let directoffset1 = standsdata[n].position.x-64-scope.linkrail[linklist[j].code].lineleft.points[0].x;
let directoffset2 = standsdata[n].position.x+64-scope.linkrail[linklist[j].code].lineleft.points[0].x;
stop.direct1.percent = directoffset1/lengthfacts;
stop.direct2.percent = directoffset1/lengthfacts;
stop.direct2.percent = directoffset2/lengthfacts;
console.log(scope.linkrail[linklist[j].code]);
console.log(directoffset1);
console.log(directoffset1);
console.log(directoffset2);
console.log("sectoffsetleft");
console.log(stop.direct2.percent);
console.log(scope.linkrail[linklist[j].code].lengthfact);