GithubHelp home page GithubHelp logo

aframe-extras's Introduction

A-Frame Extras

Latest NPM release GitHub license

Add-ons and helpers for A-Frame VR.

Includes components for controls, model loaders, pathfinding, and more:

src
├── controls/ (Documentation)
│   ├── movement-controls.js
│   ├── checkpoint-controls.js
│   ├── gamepad-controls.js
│   ├── keyboard-controls.js
│   ├── touch-controls.js
│   └── trackpad-controls.js
├── loaders/ (Documentation)
│   ├── animation-mixer.js
│   ├── collada-model-legacy.js
│   ├── fbx-model.js
│   ├── gltf-model-legacy.js
│   └── object-model.js
├── misc/ (Documentation)
│   ├── checkpoint.js
│   ├── cube-env-map.js
│   ├── grab.js
│   ├── mesh-smooth.js
│   ├── normal-material.js
│   └── sphere-collider.js
├── pathfinding/ (Documentation)
│   ├── nav-mesh.js
│   └── nav-agent.js
└── primitives/ (Documentation)
    ├── a-grid.js
    ├── a-ocean.js
    └── a-tube.js

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="https://cdn.jsdelivr.net/gh/c-frame/aframe-extras@tagOrCommit/dist/aframe-extras.min.js"></script>

replace tagOrCommit by a tag (for example v6.1.1) or a commit hash (for example fb96ab2):

CDN builds of the latest version:

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

A-Frame Version Compatibility

A-Frame Extras
v1.4.0 v7.0.0 (unreleased) / fb96ab2
v1.3.0 v7.0.0 (unreleased) / fb96ab2
v1.2.0 v7.0.0 (unreleased) / fb96ab2
v1.1.0 v6.1.1

NOTE: Several components and examples also rely on aframe-physics-system.

Usage (NPM)

npm install --save aframe-extras
// index.js
require('aframe-extras');

Once installed, you'll need to compile your JavaScript using something like webpack.

Examples

A live set of usage examples can be found here:

https://c-frame.github.io/aframe-extras/

Deprecated Components

The following components existed in previous versions of A-Frame Extras, but have been removed as of the latest release

Component Removed in Reasons
kinematic-body 7.0.0 Using physics for movement is unstable and performs poorly. When preventing players from passing through obstacles, use a navigation mesh instead whenever possible.

The kinematic-body component constrainted player movement using physics, and depended on aframe-physics-system. Using physics for locomotion is not VR-friendly, and often glitchy even for traditional 3D experiences. Use a navigation mesh instead, whenever possible.
jump-ability 7.0.0 Dependent on kinematic-body
a-hexgrid 7.0.0 Was based on this repo, which is no longer maintained, and does not work with recent versions of THREE.js.
mesh-smooth 7.0.0 Intended for JSON models, but the JSON Loader is no longer part of this repo. More background here.

aframe-extras's People

Contributors

banada avatar bryik avatar cvan avatar dependabot[bot] avatar diarmidmackenzie avatar djoksimo avatar donmccurdy avatar donmccurdy-up-for-adoption avatar giordyb avatar hypnosphi avatar jbolten avatar jgbarah avatar kylebakerio avatar mqp avatar msj121 avatar n5ro avatar netgfx avatar ngokevin avatar propuke avatar rhiannanberry avatar rossbishop avatar rspace avatar sgidon avatar stlewis avatar takahirox avatar tino-f avatar urish avatar vincentfretin avatar wmurphyrd avatar zach-capalbo 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.