-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (35 loc) · 1.16 KB
/
index.html
File metadata and controls
36 lines (35 loc) · 1.16 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My first WebVR Project!</title>
<script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/donmccurdy/aframe-extras/v3.2.7/dist/aframe-extras.min.js"></script>
<script src="https://webvr.austincodingacademy.com/demo/automove-controls.js" charset="utf-8"></script>
</head>
<body>
<a-scene>
<a-entity id="player"
camera
universal-controls="movementControls: automove, gamepad, keyboard"
kinematic-body
position="0 8 0"
></a-entity>
<a-assets>
<img id="smile" src="https://webvr.austincodingacademy.com/demo/smile.jpg">
<a-asset-item id="doors" src="https://webvr.austincodingacademy.com/demo/model.dae"></a-asset-item>
</a-assets>
<a-sphere
material="src: #smile"
position="2 1 -9"
radius="0.25"
color="yellow"
rotation="0 -90 0"
></a-sphere>
<a-entity position="-3 -1 5.5">
<a-entity collada-model="#doors" position="0 1.1 0"></a-entity>
</a-entity>
<a-grid static-body geometry="width:100; height: 100;"></a-grid>
</a-scene>
</body>
</html>