修改三维cctv速度
This commit is contained in:
parent
a3342d93ed
commit
0202d20591
@ -609,6 +609,7 @@ export function Jl3dpassflow(dom,skinCode,routegroup,viewMap) {
|
||||
//进站控制
|
||||
startWorker();
|
||||
stationwebwork.postMessage("on");
|
||||
|
||||
// passerwebwork.postMessage("on");
|
||||
|
||||
};
|
||||
@ -773,6 +774,7 @@ export function Jl3dpassflow(dom,skinCode,routegroup,viewMap) {
|
||||
// // newhumancreate(stationzon.getinitposition("exitgate"),6);
|
||||
// }
|
||||
}
|
||||
|
||||
function speciTest(){
|
||||
// stats.update();
|
||||
if(aiswitch == 0){
|
||||
@ -796,6 +798,28 @@ export function Jl3dpassflow(dom,skinCode,routegroup,viewMap) {
|
||||
}
|
||||
function startWorker(){
|
||||
initpasser();
|
||||
let updateaianimate = setInterval(
|
||||
function(){
|
||||
// console.log("?");
|
||||
if(aiswitch == 0){
|
||||
moveanimateupdate();
|
||||
passerai();
|
||||
|
||||
delta = clock.getDelta();
|
||||
// tick(delta);
|
||||
|
||||
for(let i=mixers.length-1;i>=0;i--){
|
||||
if(mixers[i]._actions[0].isRunning()){
|
||||
mixers[i].update( delta );
|
||||
}
|
||||
}
|
||||
for(let i=humanlist.children.length-1;i>=0;i--){
|
||||
if(humanlist.children[i].mixer._actions[0].isRunning()){
|
||||
humanlist.children[i].mixer.update( delta );
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 100);
|
||||
// passerwebwork.onmessage = function (event) {
|
||||
//
|
||||
// stats.update();
|
||||
@ -861,7 +885,7 @@ export function Jl3dpassflow(dom,skinCode,routegroup,viewMap) {
|
||||
if(rendermode == 2){
|
||||
render2view();
|
||||
}
|
||||
speciTest();
|
||||
// speciTest();
|
||||
// else if(rendermode == 1){
|
||||
// render4view();
|
||||
// }
|
||||
@ -1077,7 +1101,7 @@ export function Jl3dpassflow(dom,skinCode,routegroup,viewMap) {
|
||||
model.action.play();
|
||||
model.progress = 0;
|
||||
model.runrail = curve;
|
||||
model.speed = 0.1/curve.getLength();
|
||||
model.speed = 0.2/curve.getLength();
|
||||
}
|
||||
|
||||
function moveanimateupdate(){
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user