Browse Source

Address review comments

Diego Marcos 7 years ago
parent
commit
7d81dc2944
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/renderers/webvr/WebVRManager.js

+ 4 - 2
src/renderers/webvr/WebVRManager.js

@@ -112,6 +112,10 @@ function WebVRManager( renderer ) {
 
 			poseObject.position.fromArray( pose.position );
 
+		} else {
+
+			poseObject.position.set( 0, 0, 0 );
+
 		}
 
 		if ( pose.orientation !== null ) {
@@ -128,10 +132,8 @@ function WebVRManager( renderer ) {
 		  standingMatrix.makeTranslation(0, scope.userHeight, 0);
 		}
 
-		standingMatrixInverse.getInverse( standingMatrix );
 		poseObject.position.applyMatrix4( standingMatrix );
 		poseObject.updateMatrixWorld();
-		camera.matrixWorldInverse.multiply( standingMatrixInverse );
 
 		if ( device.isPresenting === false ) return camera;