Skip to content

Commit

Permalink
Added damping (#25656)
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley committed Mar 12, 2023
1 parent fb2db55 commit 91b4dc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/webgl_loader_ldraw.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
scene.environment = pmremGenerator.fromScene( new RoomEnvironment() ).texture;

controls = new OrbitControls( camera, renderer.domElement );
controls.enableDamping = true;

//

Expand Down Expand Up @@ -326,6 +327,7 @@
function animate() {

requestAnimationFrame( animate );
controls.update();
render();

}
Expand Down

0 comments on commit 91b4dc2

Please sign in to comment.