|
|
@ -71,7 +71,7 @@ QMUtil = function () { |
|
|
this.pathStateObj = { isPathState: false, isPathPlay: true, basePath: "", graphPath: "", ftPath: "", dtPath: "", facAllArr: [], forShopArr: {}, elevator: null, straight: null, elevatorDown: null, seldtFacNo: "", seldownftFacNo: "", selupftFacNo: "" }; |
|
|
this.pathStateObj = { isPathState: false, isPathPlay: true, basePath: "", graphPath: "", ftPath: "", dtPath: "", facAllArr: [], forShopArr: {}, elevator: null, straight: null, elevatorDown: null, seldtFacNo: "", seldownftFacNo: "", selupftFacNo: "" }; |
|
|
this.timeObj = { timeS: 0, collTime: -1, pathTime: -1 }; |
|
|
this.timeObj = { timeS: 0, collTime: -1, pathTime: -1 }; |
|
|
//debug 参数 相机坐标/ 镜头方向
|
|
|
//debug 参数 相机坐标/ 镜头方向
|
|
|
this.guiOptions = { cameraX: 0, cameraY: 220, cameraZ: 220, targatX: 0, targatY: 0, targatZ: 0 }; //this.button = function() {};
|
|
|
|
|
|
|
|
|
this.guiOptions = { cameraX: 0, cameraY: 200, cameraZ: 200, targatX: 0, targatY: 0, targatZ: 0 }; //this.button = function() {};
|
|
|
|
|
|
|
|
|
this.sceneGap = { x: -10, y: 0, z: 0, scale: 0.08 }; //改变地图位置,大小
|
|
|
this.sceneGap = { x: -10, y: 0, z: 0, scale: 0.08 }; //改变地图位置,大小
|
|
|
|
|
|
|
|
|
@ -1865,6 +1865,9 @@ MainMap_QM.prototype = { |
|
|
Map_QM.rotationAngle(angle); |
|
|
Map_QM.rotationAngle(angle); |
|
|
Map_QM.startRender(); |
|
|
Map_QM.startRender(); |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
|
|
|
Map_QM.cameraPerspective.position.set(parseInt(Map_QM.util.guiOptions.cameraX), parseInt(Map_QM.util.guiOptions.cameraY), parseInt(Map_QM.util.guiOptions.cameraZ)); |
|
|
|
|
|
Map_QM.cameraPerspective.updateProjectionMatrix(); //必须update
|
|
|
|
|
|
Map_QM.cameraOrtho.position.set(parseInt(Map_QM.util.guiOptions.cameraX), parseInt(Map_QM.util.guiOptions.cameraY), parseInt(Map_QM.util.guiOptions.cameraZ)); |
|
|
Map_QM.controls.saveState(); |
|
|
Map_QM.controls.saveState(); |
|
|
Map_QM.controls.addEventListener('change', this.controlsChock, false); //控制器变化
|
|
|
Map_QM.controls.addEventListener('change', this.controlsChock, false); //控制器变化
|
|
|
}, 100) |
|
|
}, 100) |
|
|
|