Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README.md

  • Loading branch information...
commit a8ea1b0979dc1407bb743412f7a0d211caee3856 1 parent 47bab3d
@clarkbox authored
Showing with 20 additions and 2 deletions.
  1. +20 −2 README.md
View
22 README.md
@@ -1,4 +1,22 @@
-smoothControls
+SmoothControls - REAL SMOOOOTH
==============
-Camera controls for threejs - Pointerlock with y axis
+Camera controls for threejs - Pointerlock with y axis
+
+
+```
+...
+var clock = new THREE.Clock();
+var controls = this.controls = new THREE.SmoothControls( camera );
+controls.enabled = false;
+controls.movementSpeed = 1000;
+controls.lookSpeed = 0.125;
+```
+
+```
+animate: function(){
+ ...
+ this.controls.update( clock.getDelta() );
+ ...
+}
+```
Please sign in to comment.
Something went wrong with that request. Please try again.