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 βΒ Β βββ mouse-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 βΒ Β βββ jump-ability.js βΒ Β βββ kinematic-body.js
βΒ Β βββ mesh-smooth.js βΒ Β βββ normal-material.js
βΒ Β βββ sphere-collider.js βββ pathfinding/ (Documentation) βΒ Β βββ nav-mesh.js
βΒ Β βββ nav-agent.js
βββ primitives/ (Documentation) Β Β βββ a-grid.js Β Β βββ a-hex-grid.js Β Β βββ a-ocean.js Β Β βββ a-tube.js
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/donmccurdy/aframe-extras@v6.0.1/dist/aframe-extras.min.js"></script>CDN builds for aframe-extras/v6.0.0:
- aframe-extras.js (development)
- aframe-extras.min.js (production)
For partial builds, use a subpackage like aframe-extras.controls.min.js. Full list of packages above.
A-Frame Version Compatibility
| A-Frame | Extras |
|---|---|
| v0.9.X | aframe-extras/v6.0.0 |
| v0.8.X | */v5.1.0 |
| v0.5.X | */v3.13.1 |
| v0.4.X | */v3.3.0 |
| v0.3.X | */v2.6.1 |
| v0.2.X | */v1.17.0 |
NOTE: Several components and examples also rely on aframe-physics-system.
npm install --save aframe-extras
// index.js
require('aframe-extras');Once installed, you'll need to compile your JavaScript using something like Browserify or Webpack. Example:
npm install -g browserify
browserify index.js -o bundle.jsbundle.js may then be included in your page. See here for a better introduction to Browserify.