File tree Expand file tree Collapse file tree 3 files changed +19
-13
lines changed Expand file tree Collapse file tree 3 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 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 ">
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 ">
Original file line number Diff line number Diff line change 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 >
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 -->
Original file line number Diff line number Diff line change 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 >
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 -->
You can’t perform that action at this time.
0 commit comments