xzw 3 년 전
부모
커밋
3b93a1e9ae
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/navigation/InputHandler.js

+ 1 - 1
src/navigation/InputHandler.js

@@ -563,7 +563,7 @@ export class InputHandler extends EventDispatcher {
           
         if(viewport.camera.type == 'OrthographicCamera'/*  == 'mapViewport' */){ 
             let pos3d = new THREE.Vector3(this.pointer.x,this.pointer.y,-1).unproject(viewport.camera); //z:-1朝外   
-            pos3d.setZ(viewer.bound.boundingBox.z += 0.2) //大概放地面上
+            pos3d.setZ(viewer.bound.boundingBox.min.z + 0.2) //大概放地面上
             if(!intersectPoint){
                 intersectPoint = {}
             }