Created
July 18, 2017 16:16
-
-
Save jamct/991c360bba90f3f90a89df19a0ded9b9 to your computer and use it in GitHub Desktop.
A-Frame Demo: Hand-Controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>A-Frame-Demo 6</title> | |
<meta name="description" content="Handcontroller"> | |
<meta charset="utf-8"> | |
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script> | |
</head> | |
<body> | |
<a-scene> | |
<a-entity hand-controls="right" aabb-collider="objects: .kiste;" grab></a-entity> | |
<a-entity hand-controls="left" aabb-collider="objects: .kiste;" grab></a-entity> | |
<a-entity hand-controls="right" aabb-collider="objects: .kiste;" grab></a-entity> | |
<a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9" .kiste></a-box> | |
</a-scene> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment