Explorar o código

reset rotation

Raanan Weber %!s(int64=7) %!d(string=hai) anos
pai
achega
c96fd83070
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
 
             }