Last active
June 13, 2021 12:51
-
-
Save sorskoot/5bd8bb79c3b2b716c0d5e9d2be7d1a63 to your computer and use it in GitHub Desktop.
From KenShape To WebXR - Demo
This file contains hidden or 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 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