diff --git a/examples/js/controls/FlyControls.js b/examples/js/controls/FlyControls.js index 32caafa52ffda54548df2aeb0957c2c91d020f01..b01604cff762181689338f7068550c58ff28d9fe 100644 --- a/examples/js/controls/FlyControls.js +++ b/examples/js/controls/FlyControls.js @@ -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 ); };