Skip to content

Commit

Permalink
DeviceOrientation rotation vector should be a THREE.Vector3 represent…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
richtr committed Mar 11, 2014
1 parent 022dbeb commit be3c154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/js/controls/DeviceOrientationControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ THREE.DeviceOrientationControls = function ( object ) {
this.deviceOrientation = {};
this.screenOrientation = 0;

this._rotationVector = new THREE.Vector4();
this._rotationVector = new THREE.Vector3();
this._rotationMatrix = new THREE.Matrix4();

this.onDeviceOrientationChangeEvent = function( rawEvtData ) {
Expand Down

0 comments on commit be3c154

Please sign in to comment.