|
@@ -597,7 +597,6 @@
|
|
presentY:chooseMesh.presentY,
|
|
presentY:chooseMesh.presentY,
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
- // try{
|
|
|
|
boundary = new THREE.Box3(
|
|
boundary = new THREE.Box3(
|
|
new THREE.Vector3(chooseMesh.centerX/100 - chooseMesh.spaceWidth/100/2 + 0.1, 0, -chooseMesh.centerY/100 - chooseMesh.spaceHeight/100/2 + 0.1), // 边界框的最小点
|
|
new THREE.Vector3(chooseMesh.centerX/100 - chooseMesh.spaceWidth/100/2 + 0.1, 0, -chooseMesh.centerY/100 - chooseMesh.spaceHeight/100/2 + 0.1), // 边界框的最小点
|
|
new THREE.Vector3(chooseMesh.centerX/100 + chooseMesh.spaceWidth/100/2 - 0.1, 2.7, -chooseMesh.centerY/100 + chooseMesh.spaceHeight/100/2 - 0.1) // 边界框的最大点
|
|
new THREE.Vector3(chooseMesh.centerX/100 + chooseMesh.spaceWidth/100/2 - 0.1, 2.7, -chooseMesh.centerY/100 + chooseMesh.spaceHeight/100/2 - 0.1) // 边界框的最大点
|
|
@@ -613,11 +612,6 @@
|
|
// controls.target.set(cameraNewPosition.x,cameraNewPosition.y,cameraNewPosition.z);
|
|
// controls.target.set(cameraNewPosition.x,cameraNewPosition.y,cameraNewPosition.z);
|
|
// controls.target.copy(camera.position);
|
|
// controls.target.copy(camera.position);
|
|
camera.lookAt(targetNewPosition.x,targetNewPosition.y,targetNewPosition.z);
|
|
camera.lookAt(targetNewPosition.x,targetNewPosition.y,targetNewPosition.z);
|
|
- // setTimeout(()=> {
|
|
|
|
- // }, 10);
|
|
|
|
- // }catch(e){
|
|
|
|
- // alert("***positionCamer-error***"+e)
|
|
|
|
- // }
|
|
|
|
}
|
|
}
|
|
// oldP 相机原来的位置
|
|
// oldP 相机原来的位置
|
|
// oldT target原来的位置
|
|
// oldT target原来的位置
|