-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (57 loc) · 1.8 KB
/
index.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<script src="https://aframe.io/releases/1.4.0/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-extras@fb96ab2/dist/aframe-extras.min.js"></script>
<script src="js/square-teleport.js"></script>
<title>Cube Faces Tracking</title>
</head>
<body>
<a-scene>
<a-sky id="sky" color="#1A0A2A"></a-sky>
<a-entity id="rig" movement-controls position="0 0 0" square-teleport>
<a-entity
id="camera"
camera="fov:55"
position="0 1.6 0"
look-controls
></a-entity>
</a-entity>
<!-- FRONT(1) (green)-->
<a-entity
id="face_1"
geometry="primitive: plane; width: 5; height: 5"
material="color: green; side: double"
rotation="-90 00 00"
position="2.5 0 2.5"
></a-entity>
<!-- RIGHT(2) (orange) -->
<a-entity
id="face_2"
geometry="primitive: plane; width: 5; height: 5"
material="color: orange; side: double"
rotation="-90 00 00"
position="2.5 0 -2.5"
></a-entity>
<!-- TOP(3) (blue)-->
<a-entity
id="face_3"
geometry="primitive: plane; width: 5; height: 5"
material="color: blue; side: double"
rotation="-90 00 00"
position="-2.5 0 2.5"
></a-entity>
<!-- LEFT(4) (yellow)-->
<a-entity
id="face_4"
geometry="primitive: plane; width: 5; height: 5"
material="color: yellow; side: double"
rotation="-90 00 00"
position="-2.5 0 -2.5"
></a-entity>
</a-scene>
</body>
</html>