Skip to content

Commit 1b3a804

Browse files
teleport-controls ->blink-controls
1 parent e51b2f5 commit 1b3a804

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

examples/ammo/constraints.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<script src="https://aframe.io/releases/1.4.0/aframe.min.js"></script>
99
<script src="https://mixedreality.mozilla.org/ammo.js/builds/ammo.wasm.js"></script>
1010
<script src="https://unpkg.com/[email protected]/dist/aframe-environment-component.min.js"></script>
11-
<script src="https://cdn.jsdelivr.net/gh/powersimple/aframe-teleport-controls@master/dist/aframe-teleport-controls.min.js"></script>
11+
<script src="https://cdn.jsdelivr.net/npm/aframe-blink-controls/dist/aframe-blink-controls.min.js"></script>
1212
<script src="../../dist/aframe-physics-system.js"></script>
1313
<script src="../components/force-pushable.js"></script>
1414
<link rel="stylesheet" href="../styles.css">
@@ -34,12 +34,12 @@
3434
geometry="primitive: circle; radius: 0.01; segments: 4;"
3535
material="color: #FF4444; shader: flat"></a-entity>
3636
</a-entity>
37-
<a-entity teleport-controls="cameraRig: #cameraRig; button: trigger; type: line"
37+
<a-entity blink-controls="cameraRig: #cameraRig; button: trigger"
3838
ammo-body="type: kinematic"
3939
ammo-shape="type: box; halfExtents: 0.05 0.1 0.1; fit: manual;"
4040
hand-controls="hand: left">
4141
</a-entity>
42-
<a-entity teleport-controls="cameraRig: #cameraRig; button: trigger"
42+
<a-entity blink-controls="cameraRig: #cameraRig; button: trigger"
4343
ammo-body="type: kinematic"
4444
ammo-shape="type: box; halfExtents: 0.05 0.1 0.1; fit: manual;"
4545
hand-controls="hand: right">

examples/cannon-worker/constraints.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Examples • Constraints CANNON Worker</title>
88
<script type="text/javascript" src="https://aframe.io/releases/1.4.0/aframe.min.js"></script>
99
<script src="https://unpkg.com/[email protected]/dist/aframe-environment-component.min.js"></script>
10-
<script src="https://cdn.jsdelivr.net/gh/powersimple/aframe-teleport-controls@master/dist/aframe-teleport-controls.min.js"></script>
10+
<script src="https://cdn.jsdelivr.net/npm/aframe-blink-controls/dist/aframe-blink-controls.min.js"></script>
1111
<script src="../../dist/aframe-physics-system.js"></script>
1212
<script src="../components/grab.js"></script>
1313
<script src="../components/force-pushable.js"></script>
@@ -26,15 +26,18 @@
2626
view code
2727
</a>
2828
<a-scene physics="driver: worker" environment>
29-
<a-entity teleport-controls hand-controls="hand: left" static-body="shape: sphere; sphereRadius: 0.02;" grab></a-entity>
30-
<a-entity teleport-controls hand-controls="hand: right" static-body="shape: sphere; sphereRadius: 0.02;" grab></a-entity>
31-
32-
<a-entity camera look-controls wasd-controls position="0 1.6 0">
29+
<a-entity id="cameraRig"></a-entity>
30+
<a-entity camera look-controls wasd-controls position="0 1.6 0">
3331
<a-entity cursor
3432
raycaster="objects:[force-pushable]"
3533
position="0 0 -0.5"
3634
geometry="primitive: circle; radius: 0.01; segments: 4;"
3735
material="color: #FF4444; shader: flat"></a-entity>
36+
</a-entity>
37+
<a-entity blink-controls="cameraRig: #cameraRig; button: trigger"
38+
hand-controls="hand: left" static-body="shape: sphere; sphereRadius: 0.02;" grab></a-entity>
39+
<a-entity blink-controls="cameraRig: #cameraRig; button: trigger"
40+
hand-controls="hand: right" static-body="shape: sphere; sphereRadius: 0.02;" grab></a-entity>
3841
</a-entity>
3942

4043
<!-- CONE TWIST -->

examples/cannon/constraints.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Examples • Constraints CANON</title>
88
<script type="text/javascript" src="https://aframe.io/releases/1.4.0/aframe.min.js"></script>
99
<script src="https://unpkg.com/[email protected]/dist/aframe-environment-component.min.js"></script>
10-
<script src="https://cdn.jsdelivr.net/gh/powersimple/aframe-teleport-controls@master/dist/aframe-teleport-controls.min.js"></script>
10+
<script src="https://cdn.jsdelivr.net/npm/aframe-blink-controls/dist/aframe-blink-controls.min.js"></script>
1111
<script src="../../dist/aframe-physics-system.js"></script>
1212
<script src="../components/grab.js"></script>
1313
<script src="../components/force-pushable.js"></script>
@@ -25,15 +25,18 @@
2525
view code
2626
</a>
2727
<a-scene environment>
28-
<a-entity teleport-controls hand-controls="hand: left" static-body="shape: sphere; sphereRadius: 0.02;" grab></a-entity>
29-
<a-entity teleport-controls hand-controls="hand: right" static-body="shape: sphere; sphereRadius: 0.02;" grab></a-entity>
30-
31-
<a-entity camera look-controls wasd-controls position="0 1.6 0">
28+
<a-entity id="cameraRig"></a-entity>
29+
<a-entity camera look-controls wasd-controls position="0 1.6 0">
3230
<a-entity cursor
3331
raycaster="objects:[force-pushable]"
3432
position="0 0 -0.5"
3533
geometry="primitive: circle; radius: 0.01; segments: 4;"
3634
material="color: #FF4444; shader: flat"></a-entity>
35+
</a-entity>
36+
<a-entity blink-controls="cameraRig: #cameraRig; button: trigger"
37+
hand-controls="hand: left" static-body="shape: sphere; sphereRadius: 0.02;" grab></a-entity>
38+
<a-entity blink-controls="cameraRig: #cameraRig; button: trigger"
39+
hand-controls="hand: right" static-body="shape: sphere; sphereRadius: 0.02;" grab></a-entity>
3740
</a-entity>
3841

3942
<!-- CONE TWIST -->

0 commit comments

Comments
 (0)