Update index.html
Browse files- index.html +5 -3
index.html
CHANGED
|
@@ -53,8 +53,7 @@
|
|
| 53 |
<a-entity id="camera" camera look-controls kinematic-body></a-entity>
|
| 54 |
<a-entity id="zoomIn" class="button" position="-2.5 0 0" rotation="0 0 180" onclick="zoomIn()">+</a-entity>
|
| 55 |
<a-entity id="zoomOut" class="button" position="2.5 0 0" onclick="zoomOut()">-</a-entity>
|
| 56 |
-
|
| 57 |
-
|
| 58 |
<!-- Define the script to update the video texture -->
|
| 59 |
<script>
|
| 60 |
const video = document.querySelector('#video');
|
|
@@ -95,6 +94,10 @@
|
|
| 95 |
physics.debug = true;
|
| 96 |
physics.debugInterval = 500;
|
| 97 |
physics.debugTiming = 'interval';
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
player.setAttribute('physics', physics);
|
| 99 |
player.body.linearDamping = 0.9;
|
| 100 |
player.body.angularDamping = 0.9;
|
|
@@ -102,7 +105,6 @@
|
|
| 102 |
player.body.mass = 80;
|
| 103 |
});
|
| 104 |
</script>
|
| 105 |
-
|
| 106 |
</a-scene>
|
| 107 |
</body>
|
| 108 |
</html>
|
|
|
|
| 53 |
<a-entity id="camera" camera look-controls kinematic-body></a-entity>
|
| 54 |
<a-entity id="zoomIn" class="button" position="-2.5 0 0" rotation="0 0 180" onclick="zoomIn()">+</a-entity>
|
| 55 |
<a-entity id="zoomOut" class="button" position="2.5 0 0" onclick="zoomOut()">-</a-entity>
|
| 56 |
+
</a-entity>
|
|
|
|
| 57 |
<!-- Define the script to update the video texture -->
|
| 58 |
<script>
|
| 59 |
const video = document.querySelector('#video');
|
|
|
|
| 94 |
physics.debug = true;
|
| 95 |
physics.debugInterval = 500;
|
| 96 |
physics.debugTiming = 'interval';
|
| 97 |
+
physics.falling = true;
|
| 98 |
+
physics.fallingAcceleration = 30;
|
| 99 |
+
physics.gliding = true;
|
| 100 |
+
physics.glidingFactor = 0.2;
|
| 101 |
player.setAttribute('physics', physics);
|
| 102 |
player.body.linearDamping = 0.9;
|
| 103 |
player.body.angularDamping = 0.9;
|
|
|
|
| 105 |
player.body.mass = 80;
|
| 106 |
});
|
| 107 |
</script>
|
|
|
|
| 108 |
</a-scene>
|
| 109 |
</body>
|
| 110 |
</html>
|