|
@@ -194,9 +194,8 @@ THREE.FlyControls = function ( object, domElement ) {
|
|
|
this.tmpQuaternion.set( this.rotationVector.x * rotMult, this.rotationVector.y * rotMult, this.rotationVector.z * rotMult, 1 ).normalize();
|
|
|
this.object.quaternion.multiply( this.tmpQuaternion );
|
|
|
|
|
|
- this.object.matrix.setPosition( this.object.position );
|
|
|
- this.object.matrix.setRotationFromQuaternion( this.object.quaternion );
|
|
|
- this.object.matrixWorldNeedsUpdate = true;
|
|
|
+ // expose the rotation vector for convenience
|
|
|
+ this.object.rotation.setEulerFromQuaternion( this.object.quaternion, this.object.eulerOrder );
|
|
|
|
|
|
|
|
|
};
|