|
@@ -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 = {}
|
|
|
}
|