aframe-supercraft-thing
1.3.1 • Public • Published supercraft-thing
A component for extracting things from Supercraft scenes.
For A-Frame and
Supercraft.
API
Property |
Description |
Default Value |
from |
selector to supercraft-loader entity |
'' |
name |
name of the thing |
'' |
resetOrigin |
set local coordinates of the thing in its center (by default is on 0,0,0) |
false |
ignorePosition |
if true, position will be initialized to current entity's position instead of the position in the supercraft scene |
false |
Installation
Browser
Install and use by directly including the browser files:
<head>
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-supercraft-loader/dist/aframe-supercraft-loader.min.js"></script>
<script src="https://unpkg.com/aframe-supercraft-thing/dist/aframe-supercraft-thing.min.js"></script>
</head>
<body>
<a-scene>
<a-entity id="scene" supercraft-loader="name: respectful-master"></a-entity>
<a-entity supercraft-thing="from:#scene; name: thing1"></a-entity>
</a-scene>
</body>
npm
Install via npm:
npm install aframe-supercraft-thing
Then require and use.
require('aframe');
require('aframe-supercraft-loader');
require('aframe-supercraft-thing');
Package Sidebar
Install
npm i aframe-supercraft-thing
Weekly Downloads