Skip to content

Instantly share code, notes, and snippets.

@sorskoot
Last active June 13, 2021 12:51
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 sorskoot/5bd8bb79c3b2b716c0d5e9d2be7d1a63 to your computer and use it in GitHub Desktop.
Save sorskoot/5bd8bb79c3b2b716c0d5e9d2be7d1a63 to your computer and use it in GitHub Desktop.
From KenShape To WebXR - Demo
<!DOCTYPE html>
<html lang="en">
<head>
<title>From KenShape To WebXR</title>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<a-asset-item id="gun-model" src="/gun.glb"></a-asset-item>
</a-assets>
<a-entity tracked-controls="hand: left">
<a-entity rotation="0 90 0" position="0 0.05 -0.1" scale="0.03125 0.03125 0.03125"
gltf-model="#gun-model">
</a-entity>
</a-entity>
<a-entity tracked-controls="hand: right">
<a-entity rotation="0 90 0" position="0 0.05 -0.1" scale="0.03125 0.03125 0.03125"
gltf-model="#gun-model">
</a-entity>
</a-entity>
</a-scene>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment