Skip to content

Commit

Permalink
[universal-controls] Remove rotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Mar 22, 2018
1 parent e2b0772 commit e9537ba
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 372 deletions.
9 changes: 6 additions & 3 deletions examples/platforms/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@
<body>
<a-scene fog="type: exponential; color: #FFF; density: 0.04;">
<!-- Player -->
<a-entity id="player"
camera
<a-entity id="rig"
universal-controls
kinematic-body
position="15 0 10"
jump-ability="maxJumps: 3;
distance: 10;">
<a-entity id="camera"
camera
position="0 1.6 0"
look-controls="pointerLockEnabled: true"></a-entity>
</a-entity>


<!--
Platforms
Just a placeholder - platforms.js will insert random blocks.
Expand Down
7 changes: 6 additions & 1 deletion examples/walls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
<body>
<a-scene physics>
<!-- Player -->
<a-entity camera universal-controls kinematic-body></a-entity>
<a-entity id="rig" universal-controls kinematic-body>
<a-entity id="camera"
camera
position="0 1.6 0"
look-controls="pointerLockEnabled: true"></a-entity>
</a-entity>

<!-- Ground -->
<a-grid static-body></a-grid>
Expand Down
82 changes: 0 additions & 82 deletions src/controls/hmd-controls.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/controls/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
require('./checkpoint-controls');
require('./gamepad-controls');
require('./hmd-controls');
require('./keyboard-controls');
require('./mouse-controls');
require('./touch-controls');
require('./universal-controls');
148 changes: 0 additions & 148 deletions src/controls/mouse-controls.js

This file was deleted.

Loading

0 comments on commit e9537ba

Please sign in to comment.