-
Notifications
You must be signed in to change notification settings - Fork 0
/
joshoji.html
23 lines (23 loc) · 1.16 KB
/
joshoji.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<title>バーチャル鯖江プロジェクト</title>
<script src="https://aframe.io/releases/1.1.0/aframe.min.js"></script>
<!-- https://github.com/fernandojsg/aframe-teleport-controls -->
<script src="https://rawgit.com/fernandojsg/aframe-teleport-controls/master/dist/aframe-teleport-controls.min.js"></script>
</head>
<body>
<a-scene>
<a-assets timeout="10000">
<a-asset-item id="sabae" src="https://code4sabae.github.io/sabae-pj3d/sabae-pj3d-joshoji.gltf"></a-asset-item>
</a-assets>
<a-entity gltf-model="#sabae" position="0 -10.48 0"></a-entity>
<a-plane color="#888" height="300" width="300" rotation="-90 0 0"></a-plane>
<a-entity id="cameraRig">
<a-entity id="head" camera position="0 1.7 0" wasd-controls look-controls></a-entity>
<a-entity oculus-touch-controls="hand:left" teleport-controls="button:trigger; collisionEntities:.collidable; cameraRig:#cameraRig; teleportOrigin:#head;"></a-entity>
<a-entity oculus-touch-controls="hand:right" teleport-controls="button:trigger; collisionEntities:.collidable; cameraRig:#cameraRig; teleportOrigin:#head;"></a-entity>
</a-entity>
</a-scene>
</body>
</html>