Skip to content

Commit

Permalink
WebVRManager: Reset camera rotation when not presenting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 28, 2019
1 parent 9b4e90c commit 0ed2bd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderers/webvr/WebVRManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ function WebVRManager( renderer ) {
if ( isPresenting() === false ) {

camera.position.set( 0, userHeight, 0 );
camera.rotation.set( 0, 0, 0 );

return camera;

}
Expand Down

0 comments on commit 0ed2bd6

Please sign in to comment.