Browse Source

Added damping (#25656)

WestLangley 2 năm trước cách đây
mục cha
commit
91b4dc2c63
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      examples/webgl_loader_ldraw.html

+ 2 - 0
examples/webgl_loader_ldraw.html

@@ -102,6 +102,7 @@
 				scene.environment = pmremGenerator.fromScene( new RoomEnvironment() ).texture;
 
 				controls = new OrbitControls( camera, renderer.domElement );
+				controls.enableDamping = true;
 
 				//
 
@@ -326,6 +327,7 @@
 			function animate() {
 
 				requestAnimationFrame( animate );
+				controls.update();
 				render();
 
 			}