Browse Source

formatting

Brian Peiris 7 years ago
parent
commit
3ac9c87bd9
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/renderers/webvr/WebVRManager.js

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

@@ -126,7 +126,7 @@ function WebVRManager( renderer ) {
 
 		// We want to manipulate poseObject by its position and quaternion components since users may rely on them.
 		poseObject.matrix.copy( standingMatrix );
-		poseObject.matrix.decompose(poseObject.position, poseObject.quaternion, poseObject.scale);
+		poseObject.matrix.decompose( poseObject.position, poseObject.quaternion, poseObject.scale );
 
 		if ( pose.orientation !== null ) {
 
@@ -137,16 +137,15 @@ function WebVRManager( renderer ) {
 
 		if ( pose.position !== null ) {
 
-			tempQuaternion.setFromRotationMatrix(standingMatrix);
+			tempQuaternion.setFromRotationMatrix( standingMatrix );
 			tempPosition.fromArray( pose.position );
-			tempPosition.applyQuaternion(tempQuaternion);
+			tempPosition.applyQuaternion( tempQuaternion );
 			poseObject.position.add( tempPosition );
 
 		}
 
 		poseObject.updateMatrixWorld();
 
-
 		if ( device.isPresenting === false ) return camera;
 
 		//