aframe-supercraft-thing
A Supercraft Thing component for A-Frame.
Last updated 7 months ago by ngokevin .
MIT · Bugs · Original npm · Tarball · package.json
$ cnpm install aframe-supercraft-thing 
SYNC missed versions from official npm registry.

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');

Current Tags

  • 1.3.1                                ...           latest (7 months ago)

3 Versions

  • 1.3.1                                ...           7 months ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 6
Dependencies (2)
Dev Dependencies (24)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |