Skip to content

Commit 21b8c56

Browse files
committed
Return seconds, remove clock instance
1 parent dcb977a commit 21b8c56

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/three/renderer/controls/EnvironmentControls.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
Plane,
99
EventDispatcher,
1010
MathUtils,
11-
Clock,
1211
Ray,
1312
} from 'three';
1413
import { PivotPointMesh } from './PivotPointMesh.js';
@@ -229,7 +228,6 @@ export class EnvironmentControls extends EventDispatcher {
229228

230229
this.up = new Vector3( 0, 1, 0 );
231230
this._lastTime = performance.now();
232-
this.clock = new Clock();
233231

234232
this._detachCallback = null;
235233
this._upInitialized = false;
@@ -254,7 +252,7 @@ export class EnvironmentControls extends EventDispatcher {
254252
const curr = performance.now();
255253
const delta = curr - this._lastTime;
256254
this._lastTime = curr;
257-
return delta;
255+
return delta * 1e-3;
258256

259257
}
260258

0 commit comments

Comments
 (0)