修改下行方向初始轨迹,修改音频大小

This commit is contained in:
sunzhenyu 2019-09-17 10:50:59 +08:00
parent 3e2b812029
commit 9fd032372c
2 changed files with 1 additions and 2 deletions

View File

@ -176,6 +176,7 @@ export function Jl3dDriving(updatemmi,sound) {
sound.soundswitch = true;
}
}
sound.setVolume( data.body[tl].v/100 );
updatemmi.updatenowspeed(Math.abs(data.body[tl].v));
// }
}
@ -378,12 +379,10 @@ export function Jl3dDriving(updatemmi,sound) {
trainlisttest.list[code].children[tl].position.z = -rotaposz;
}
if (sectionlist.sections.datalist[data.body[i].sectionCode].rail[0].x<sectionlist.sections.datalist[data.body[i].sectionCode].rail[1].x) {
vexlist.push(new THREE.Vector3(rotaposx, 0, rotaposz));
for (let m=sectionlist.sections.datalist[data.body[i].sectionCode].rail.length-1; m>=0; m--) {
vexlist.push(sectionlist.sections.datalist[data.body[i].sectionCode].rail[m]);
}
} else {
vexlist.push(new THREE.Vector3(rotaposx, 0, rotaposz));
for (let m=0; m<sectionlist.sections.datalist[data.body[i].sectionCode].rail.length; m++) {
vexlist.push(sectionlist.sections.datalist[data.body[i].sectionCode].rail[m]);
}

Binary file not shown.