three-base 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ThreeBase.ts +0 -5
- package/package.json +1 -1
package/lib/ThreeBase.ts
CHANGED
|
@@ -176,9 +176,7 @@ export default class ThreeBase extends EventDispatcher {
|
|
|
176
176
|
|
|
177
177
|
// 停止控制器的惯性
|
|
178
178
|
this.controls.enableDamping = false;
|
|
179
|
-
this.controls.saveState();
|
|
180
179
|
this.controls.update();
|
|
181
|
-
this.controls.reset();
|
|
182
180
|
this.controls.enableDamping = true;
|
|
183
181
|
|
|
184
182
|
position && this.controlsPosition.reset({ x: position.x, y: position.y, z: position.z });
|
|
@@ -191,12 +189,9 @@ export default class ThreeBase extends EventDispatcher {
|
|
|
191
189
|
|
|
192
190
|
// 停止控制器的惯性
|
|
193
191
|
this.controls.enableDamping = false;
|
|
194
|
-
this.controls.saveState();
|
|
195
192
|
this.controls.update();
|
|
196
|
-
this.controls.reset();
|
|
197
193
|
this.controls.enableDamping = true;
|
|
198
194
|
|
|
199
|
-
|
|
200
195
|
let currentPosition = this.camera.position.clone();
|
|
201
196
|
let currentCenter = this.controls.target.clone();
|
|
202
197
|
|