forked from ilab-mainz/ilab-aframe-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
23 lines (22 loc) · 985 Bytes
/
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
<html>
<head>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/dist/aframe-extras.min.js"></script>
<!-- <script src="https://recast-api.donmccurdy.com/aframe-inspector-plugin-recast.js"></script>-->
</head>
<body>
<a-scene inspector-plugin-recast>
<a-assets>
<a-asset-item id="room" src="gltf/room.gltf"></a-asset-item>
<a-asset-item id="navmesh" src="gltf/navmesh.gltf"></a-asset-item>
<img id="sky" src="img/sky.jpg" />
</a-assets>
<a-sky src="#sky"></a-sky>
<a-entity id="rig" movement-controls="constrainToNavMesh: true">
<a-entity position="0 1.6 0" camera look-controls="pointerLockEnabled: true"> </a-entity>
</a-entity>
<a-entity position="-4 -0.5 2" gltf-model="#room"></a-entity>
<a-entity visible="false" gltf-model="#navmesh" nav-mesh></a-entity>
</a-scene>
</body>
</html>