Skip to content

Commit

Permalink
Replaced FlyControls with OrbitControls
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob authored Dec 5, 2017
1 parent d35ce01 commit e2f9a78
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/webgl_raymarching_reflect.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
</script>

<script src="../build/three.js"></script>
<script src="js/controls/FlyControls.js"></script>
<script src="js/controls/OrbitControls.js"></script>

<script src="js/libs/stats.min.js"></script>
<script src="js/libs/dat.gui.min.js"></script>
Expand Down Expand Up @@ -310,10 +310,10 @@
scene.add( mesh );

// Controls
controls = new THREE.FlyControls( camera, canvas );
controls.dragToLook = false;
controls.rollSpeed = Math.PI / 12;
controls.movementSpeed = 1;
controls = new THREE.OrbitControls( camera, canvas );
//controls.dragToLook = false;
//controls.rollSpeed = Math.PI / 12;
//controls.movementSpeed = 1;

// GUI
var gui = new dat.GUI();
Expand Down

0 comments on commit e2f9a78

Please sign in to comment.