#
luxiaotao1123
2024-04-11 be77701b29d225a6f9668a1fc87cb4dd0b44ec00
#
1个文件已修改
7 ■■■■ 已修改文件
zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
@@ -201,8 +201,13 @@
    }
    rePerspective = (maxHeight) => {
        const height = Math.max(maxHeight, 600)
        const cameraPosScale = 0.7;
        this.camera.position.set(-maxHeight * cameraPosScale, maxHeight * cameraPosScale, maxHeight * cameraPosScale);
        this.camera.position.set(
            -height * cameraPosScale,
            height * cameraPosScale,
            height * cameraPosScale
            );
        this.controls.target = new THREE.Vector3(0, maxHeight * 0.53, 0);
    }