GithubHelp home page GithubHelp logo

micahstubbs / aframe-extras Goto Github PK

View Code? Open in Web Editor NEW

This project forked from c-frame/aframe-extras

0.0 1.0 0.0 19.64 MB

:confetti_ball: Add-ons and helpers for A-Frame VR.

Home Page: https://sandbox.donmccurdy.com/vr/

License: MIT License

JavaScript 100.00%

aframe-extras's Introduction

A-Frame Extras

Build Status GitHub license

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, and all components are automatically registered for you:

<script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v2.6.0/dist/aframe-extras.min.js"></script>

CDN builds for aframe-extras/v2.6.0:

For partial builds, use a subpackage like aframe-extras.controls.min.js. Full list of packages below.

A-Frame Version Compatibility

A-Frame Extras
>= v0.3.0 aframe-extras/v2.6.0
< v0.2.0 */v1.17.0

Usage (NPM)

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

var extras = require('aframe-extras');

// Register a single component.
AFRAME.registerComponent('checkpoint', extras.misc.checkpoint);

// Register a particular package, and its dependencies.
extras.controls.registerAll();

// Register everything.
extras.registerAll();

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/ (Documentation)
│   ├── checkpoint-controls.js
│   ├── gamepad-controls.js
│   ├── hmd-controls.js
│   ├── keyboard-controls.js
│   ├── mouse-controls.js
│   ├── touch-controls.js
│   └── universal-controls.js
├── loaders/ (Documentation)
│   ├── ply-model.js
│   └── three-model.js
├── misc/ (Documentation)
│   ├── checkpoint.js
│   ├── grab.js                 New
│   ├── jump-ability.js
│   ├── kinematic-body.js       Experimental
│   ├── sphere-collider.js      New
│   └── toggle-velocity.js
├── physics/ (Moved to aframe-physics-system)
├── primitives/ (Documentation)
│   ├── a-grid.js
│   ├── a-ocean.js
│   └── a-tube.js
└── shadows/ (Documentation)    Experimental
    ├── shadow-light.js
    └── shadow.js

aframe-extras's People

Contributors

bryik avatar cvan avatar donmccurdy avatar iandeboisblanc avatar msj121 avatar ngokevin avatar sgidon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.