自由控制器优化。

This commit is contained in:
tengge1 2020-02-22 20:53:47 +08:00
parent 570beef3f0
commit f09ca6ae23

View File

@ -11,12 +11,13 @@ class FreeControls extends BaseControls {
this.controls = new THREE.OrbitControls(camera, domElement);
this.controls.maxPolarAngle = Math.PI / 2;
// this.controls.enableZoom = false;
this.controls.maxPolarAngle = 85 * Math.PI / 180; // 85°
this.controls.enableDamping = true;
this.controls.dampingFactor = 0.05;
this.controls.dampingFactor = 0.08;
this.controls.panSpeed = 2.0;
this.controls.panSpeed = 1.6;
// this.handleStart = this.handleStart.bind(this);
// this.handleChange = this.handleChange.bind(this);