-
Notifications
You must be signed in to change notification settings - Fork 2
/
ControllerBasic.html
38 lines (34 loc) · 1.13 KB
/
ControllerBasic.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
38
<html>
<head>
<title>Hand Controller</title>
<script src="https://aframe.io/releases/1.0.0/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/dist/aframe-extras.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/super-hands.min.js"></script>
</head>
<body>
<a-scene>
<a-entity>
<a-camera></a-camera>
</a-entity>
<!-- <a-entity id="leftHand" hand-controls="hand: left; handModelStyle: lowPoly; color: #ffcccc"></a-entity>
<a-entity id="rightHand" hand-controls="hand: right; handModelStyle: lowPoly; color: #ffcccc"></a-entity> -->
<!-- <a-entity laser-controls="hand: right"></a-entity> -->
<a-entity
sphere-collider="objects:a-box;"
super-hands
hand-controls="hand:left;color:#ff0000"
></a-entity>
<a-box
id="thebox"
grabbable
scale="0.5 0.5 0.5"
color="blue"
position="0 1.5 -1"
animation="property:rotation;
from:0 0 0;
to:360 360 0;
startEvents: click"
></a-box>
</a-scene>
</body>
</html>