1 /**
2 * @author alteredq / http://alteredqualia.com/
3 */
4
5 /**@constructor*/
6 THREE.Gyroscope = function () {
7
8 THREE.Object3D.call( this );
9
10 };
11
12 THREE.Gyroscope.prototype = Object.create( THREE.Object3D.prototype );
13
14 THREE.Gyroscope.prototype.updateMatrixWorld = function ( force ) {
15
16 this.matrixAutoUpdate && this.updateMatrix();
17
18 // update matrixWorld
19
20 if ( this.matrixWorldNeedsUpdate || force ) {
21
22 if ( this.parent ) {
23
24 this.matrixWorld.multiply( this.parent.matrixWorld, this.matrix );
25
26 this.matrixWorld.decompose( this.translationWorld, this.rotationWorld, this.scaleWorld );
27 this.matrix.decompose( this.translationObject, this.rotationObject, this.scaleObject );
28
29 this.matrixWorld.compose( this.translationWorld, this.rotationObject, this.scaleWorld );
30
31
32 } else {
33
34 this.matrixWorld.copy( this.matrix );
35
36 }
37
38
39 this.matrixWorldNeedsUpdate = false;
40
41 force = true;
42
43 }
44
45 // update children
46
47 for ( var i = 0, l = this.children.length; i < l; i ++ ) {
48
49 this.children[ i ].updateMatrixWorld( force );
50
51 }
52
53 };
54
55 THREE.Gyroscope.prototype.translationWorld = new THREE.Vector3();
56 THREE.Gyroscope.prototype.translationObject = new THREE.Vector3();
57 THREE.Gyroscope.prototype.rotationWorld = new THREE.Quaternion();
58 THREE.Gyroscope.prototype.rotationObject = new THREE.Quaternion();
59 THREE.Gyroscope.prototype.scaleWorld = new THREE.Vector3();
60 THREE.Gyroscope.prototype.scaleObject = new THREE.Vector3();
61
62
nike free rn
new balance hombre baratas
cinturones gucci
ugg rebajas
cinturon gucci
ray ban baratas
nike cortez
peuterey mujer
christian louboutin madrid
mbt zapatos
gafas ray ban baratas
mbt ofertas
air max blancas
mbt barcelona
nike air max 90
woolrich barcelona
nike mujer
botas ugg
gafas de sol carrera aratas
air max 2016 baratas
oakley baratas
nike air max 2016