You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ive noticed the Orbitcontrols.reset() function differs from THREE.js documentation. That's kinda bad for myself so i had to change it by myself.
My Question is, why is that ?
// this is the DREI orbitcontrols
this.reset = () => {
scope.target.copy(scope.target0);
scope.object.position.copy(scope.position0);
if (scope.object instanceof PerspectiveCamera) { // <= this is the point i'm talking about
scope.object.zoom = scope.zoom0;
scope.object.updateProjectionMatrix();
}
scope.dispatchEvent(changeEvent);
scope.update();
state = STATE.NONE;
};
// this is the original orbitcontrols from THREE.js
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
ive noticed the Orbitcontrols.reset() function differs from THREE.js documentation. That's kinda bad for myself so i had to change it by myself.
My Question is, why is that ?
// this is the DREI orbitcontrols
// this is the original orbitcontrols from THREE.js
Beta Was this translation helpful? Give feedback.
All reactions