Browse Source

reset rotation

Raanan Weber 7 years ago
parent
commit
c96fd83070
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Viewer/src/viewer/viewer.ts

+ 1 - 0
Viewer/src/viewer/viewer.ts

@@ -309,6 +309,7 @@ export abstract class AbstractViewer {
 
                 // reposition the object to "float" in front of the user
                 this.sceneManager.models[0].rootMesh.position.y += this._vrModelRepositioning;
+                this.sceneManager.models[0].rootMesh.rotationQuaternion = null;
 
             }