-
Notifications
You must be signed in to change notification settings - Fork 0
/
central-mini.html
24 lines (23 loc) · 1.19 KB
/
central-mini.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
<!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-central.gltf"></a-asset-item>
</a-assets>
<a-entity gltf-model="#sabae" position="7.5 -1.048 -5.5" scale="0.1 0.1 0.1"></a-entity>
<!--<a-plane color="#fcc" 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>