测试
This commit is contained in:
parent
e805a97a6d
commit
f5de76ff63
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user