소스 검색

reset rotation

Raanan Weber 7 년 전
부모
커밋
c96fd83070
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;
 
             }