-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathnavigation.html
28 lines (24 loc) · 1.43 KB
/
navigation.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<script src="https://cdn.jsdelivr.net/gh/aframevr/aframe@56d77f99494e01b6918612c526ae514f45d178a4/dist/aframe-master.min.js"></script>
<script src="https://unpkg.com/aframe-environment-component@1.3.3/dist/aframe-environment-component.min.js"></script>
<script src="../../dist/aframe-hand-tracking-controls-extras-full.js"></script>
<script src="./components/obelisk.js"></script>
<a-scene>
<!-- enviro -->
<a-entity environment="preset: yavapai"></a-entity>
<!-- obelisks -->
<a-entity position="6 0 -6" obelisk="color: yellow; cubemap: assets/cubemaps/GamlaStan" freeze-workaround></a-entity>
<a-entity position="6 0 6" obelisk="color: red; cubemap: assets/cubemaps/UnionSquare" freeze-workaround></a-entity>
<a-entity position="-6 0 6" obelisk="color: blue; cubemap: assets/cubemaps/GamlaStan2" freeze-workaround></a-entity>
<a-entity position="-6 0 -6" obelisk="color: green; cubemap: assets/cubemaps/Medborgarplatsen" freeze-workaround></a-entity>
<!-- a rig for the entire "user" is required if. Otherwise I would have to meddle in the hand-tracking-controls afaik -->
<a-entity id="rig">
<a-camera>
</a-camera>
<a-entity id="left-hand" hand-tracking-controls="hand: left" hand-tracking-extras
hand-teleport="rig: #rig; origin: a-camera" >
</a-entity>
<a-entity id="right-hand" hand-tracking-controls="hand: right" hand-tracking-extras
drag-rotate="rig: #rig">
</a-entity>
</a-entity>
</a-scene>