瀏覽代碼

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe 8 年之前
父節點
當前提交
594d159ac2
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Cameras/VR/babylon.vrExperienceHelper.ts

+ 4 - 0
src/Cameras/VR/babylon.vrExperienceHelper.ts

@@ -67,6 +67,10 @@ module BABYLON {
                         this._webVRCamera = new BABYLON.WebVRFreeCamera("WebVRHelper", this._position, this._scene);
                         this._webVRsupportedAndReady = true;
                     }
+                    else 
+                    {
+                        this._vrDeviceOrientationCamera = new BABYLON.VRDeviceOrientationFreeCamera("VRDeviceOrientationVRHelper", this._position, this._scene);
+                    }
                     document.body.appendChild(this._btnVR); 
                 });
             }