Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aframe-extras

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aframe-extras

Add-ons and examples for A-Frame VR.

  • 1.11.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.5K
decreased by-29.71%
Maintainers
1
Weekly downloads
 
Created
Source

A-Frame Extras

Add-ons and helpers for A-Frame VR.

Usage (Scripts)

In the dist/ folder, download any package(s) you need. Include the scripts on your page:

<script src="./aframe-extras.min.js"></script>

Each package's components are automatically registered for you.

Usage (NPM)

npm install --save aframe-extras
// custom-extras.js

var extras = require('aframe-extras');
AFRAME.registerComponent('velocity', extras.math.velocity); // Register a single component.
extras.physics.registerAll();                               // Register a particular package, and its dependencies.
extras.registerAll();                                       // Register everything.

Once installed, you'll need to compile your JavaScript using something like Browserify or Webpack. Example:

npm install -g browserify
browserify custom-extras.js -o bundle.js

bundle.js may then be included in your page. See here for a better introduction to Browserify.

Add-ons

src
├── controls/
│   ├── checkpoint-controls.js
│   ├── gamepad-controls.js
│   ├── hmd-controls.js
│   ├── keyboard-controls.js    (not VR-friendly)
│   ├── mouse-controls.js       (not VR-friendly)
│   ├── touch-controls.js
│   └── universal-controls.js
├── loaders/
│   ├── fbx-model.js            (experimental)
│   ├── ply-model.js
│   └── three-model.js
├── math/
│   ├── quaternion.js
│   └── velocity.js
├── misc/
│   ├── checkpoint.js
│   ├── jump-ability.js
│   └── toggle-velocity.js
├── physics/
│   ├── body.js
│   ├── dynamic-body.js
│   ├── kinematic-body.js
│   ├── physics.js
│   ├── static-body.js
│   └── system
│       └── physics.js
├── primitives/
│   ├── a-grid.js
│   └── a-ocean.js
└── shadows/
    ├── shadow-light.js         (experimental)
    └── shadow.js               (experimental)

Keywords

FAQs

Package last updated on 29 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc