src/views/screen/components/screen-map-three/experience/camera.js
@@ -1,3 +1,4 @@ import {MathUtils} from 'three'; import { PerspectiveCamera, CameraHelper } from 'three'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; @@ -26,6 +27,10 @@ this.controls = new OrbitControls(this.instance, this.canvas); this.controls.target.set(0, 0, 5); this.controls.enableDamping = true; this.controls.minDistance = 20; this.controls.maxDistance = 80; this.controls.maxPolarAngle = MathUtils.degToRad(80); // this.controls.maxPolarAngle = (-Math.PI / 2); } resize() {