Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 47bab3d commit a8ea1b0979dc1407bb743412f7a0d211caee3856 @clarkbox committed Dec 15, 2012
Showing with 20 additions and 2 deletions.
  1. +20 −2 README.md
View
@@ -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() );
+ ...
+}
+```

0 comments on commit a8ea1b0

Please sign in to comment.