Skip to content

Instantly share code, notes, and snippets.

@jamct
Created July 18, 2017 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamct/991c360bba90f3f90a89df19a0ded9b9 to your computer and use it in GitHub Desktop.
Save jamct/991c360bba90f3f90a89df19a0ded9b9 to your computer and use it in GitHub Desktop.
A-Frame Demo: Hand-Controller
<!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