aframe-extras
Advanced tools
Comparing version 3.11.2 to 3.11.3
{ | ||
"name": "aframe-extras", | ||
"version": "3.11.2", | ||
"version": "3.11.3", | ||
"description": "Add-ons and examples for A-Frame VR.", | ||
@@ -5,0 +5,0 @@ "author": "Don McCurdy <dm@donmccurdy.com>", |
@@ -13,9 +13,9 @@ # A-Frame Extras | ||
```html | ||
<script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v3.11.2/dist/aframe-extras.min.js"></script> | ||
<script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v3.11.3/dist/aframe-extras.min.js"></script> | ||
``` | ||
CDN builds for aframe-extras/v3.11.2: | ||
CDN builds for aframe-extras/v3.11.3: | ||
- [aframe-extras.js](https://cdn.rawgit.com/donmccurdy/aframe-extras/v3.11.2/dist/aframe-extras.js) *(development)* | ||
- [aframe-extras.min.js](https://cdn.rawgit.com/donmccurdy/aframe-extras/v3.11.2/dist/aframe-extras.min.js) *(production)* | ||
- [aframe-extras.js](https://cdn.rawgit.com/donmccurdy/aframe-extras/v3.11.3/dist/aframe-extras.js) *(development)* | ||
- [aframe-extras.min.js](https://cdn.rawgit.com/donmccurdy/aframe-extras/v3.11.3/dist/aframe-extras.min.js) *(production)* | ||
@@ -28,3 +28,3 @@ For partial builds, use a subpackage like `aframe-extras.controls.min.js`. [Full list of packages below](#add-ons). | ||
|-----------|-----------------------| | ||
| v0.5.X | aframe-extras/v3.11.2 | | ||
| v0.5.X | aframe-extras/v3.11.3 | | ||
| v0.4.X | */v3.3.0 | | ||
@@ -31,0 +31,0 @@ | v0.3.X | */v2.6.1 | |
@@ -23,8 +23,19 @@ var EPS = 0.1; | ||
setCheckpoint: function (checkpoint) { | ||
var el = this.el; | ||
if (!this.active) return; | ||
if (this.checkpoint === checkpoint) return; | ||
if (this.checkpoint) { | ||
el.emit('navigation-end'); | ||
} | ||
this.checkpoint = checkpoint; | ||
el.emit('navigation-start'); | ||
if (this.data.mode === 'teleport') { | ||
this.sync(); | ||
this.el.setAttribute('position', this.targetPosition); | ||
this.checkpoint = null; | ||
el.emit('navigation-end'); | ||
} | ||
@@ -48,2 +59,3 @@ }, | ||
this.checkpoint = null; | ||
this.el.emit('navigation-end'); | ||
return offset.set(0, 0, 0); | ||
@@ -50,0 +62,0 @@ } |
@@ -51,3 +51,3 @@ # Controls | ||
- **checkpoint-controls**: Teleport or animate between checkpoints. See also: [checkpoint](/src/misc/checkpoint.js). | ||
- **checkpoint-controls**: Teleport or animate between checkpoints. See also: [checkpoint](/src/misc/checkpoint.js). Fires `navigation-start` and `navigation-end` events. | ||
- **gamepad-controls**: Gamepad position + (optional) rotation controls. | ||
@@ -54,0 +54,0 @@ - **hmd-controls**: HMD rotation / positional tracking controls. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3592481
73287