-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMovement_on_Rails_Locomotion.html
39 lines (30 loc) · 1.51 KB
/
Movement_on_Rails_Locomotion.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
<!doctype html>
<html>
<head>
<title>A-Frame Movement On-Rails Locomotion</title>
<!-- progessive controls not working! -->
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<!-- ******** NEW AFRAME-EXTRAS VERSION FOR A-FRAME v1.0.4 ******** -->
<script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v6.0.0/dist/aframe-extras.min.js"></script>
<!-- ******** NEW SUPER-HANDS COMPONENT VERSION FOR A-FRAME v1.0.4 ******** -->
<!-- ******** With v3.0.0 you need to serve progressive-controls yourself ******** -->
<script src="https://unpkg.com/[email protected]/dist/super-hands.min.js"></script>
<script src="js/progressive-controls.js"></script>
<!-- ******** NEW LOOK-AT COMPONENT VERSION FOR A-FRAME v1.0.4 ******** -->
<script src="https://unpkg.com/[email protected]/dist/aframe-look-at-component.min.js"></script>
</head>
<body>
<a-scene>
<!-- Camera Rig -->
<a-entity movement-controls="controls: checkpoint"
checkpoint-controls="mode: animate">
<!-- Progressive Controls -->
<a-entity progressive-controls></a-entity>
</a-entity>
<a-box color="blue"
position="0 0 -7"
checkpoint="offset: -1 -2.5 0"
></a-box>
</a-scene>
</body>
</html>