Browse Source

DeviceOrientation rotation vector should be a THREE.Vector3 representation

richtr 11 years ago
parent
commit
be3c1544b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/controls/DeviceOrientationControls.js

+ 1 - 1
examples/js/controls/DeviceOrientationControls.js

@@ -14,7 +14,7 @@ THREE.DeviceOrientationControls = function ( object ) {
 	this.deviceOrientation = {};
 	this.deviceOrientation = {};
 	this.screenOrientation = 0;
 	this.screenOrientation = 0;
 
 
-	this._rotationVector = new THREE.Vector4();
+	this._rotationVector = new THREE.Vector3();
 	this._rotationMatrix = new THREE.Matrix4();
 	this._rotationMatrix = new THREE.Matrix4();
 
 
 	this.onDeviceOrientationChangeEvent = function( rawEvtData ) {
 	this.onDeviceOrientationChangeEvent = function( rawEvtData ) {