Skip to content

Commit

Permalink
Merge pull request #337 from vincentfretin/framerate-independent-rota…
Browse files Browse the repository at this point in the history
…tion

[orbit-controls] Support frame rate independent autoRotate
  • Loading branch information
dmarcos committed Jan 8, 2024
2 parents ff681da + 0af17fe commit e663c77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/orbit-controls/dist/aframe-orbit-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -1650,12 +1650,12 @@ AFRAME.registerComponent('orbit-controls', {
controls.zoomToCursor = data.zoomToCursor;
},

tick: function () {
tick: function (t, dt) {
var controls = this.controls;
var data = this.data;
if (!data.enabled) { return; }
if (controls.enabled && (controls.enableDamping || controls.autoRotate)) {
this.controls.update();
this.controls.update(dt / 1000);
}
},

Expand Down
Loading

0 comments on commit e663c77

Please sign in to comment.