Просмотр исходного кода

remove offset from starting position logic

Trevor Baron 7 лет назад
Родитель
Сommit
4cd5be117c
1 измененных файлов с 0 добавлено и 7 удалено
  1. 0 7
      src/Cameras/VR/babylon.webVRCamera.ts

+ 0 - 7
src/Cameras/VR/babylon.webVRCamera.ts

@@ -192,13 +192,6 @@ module BABYLON {
                                 }
                             });
                         }
-                        // Move starting headset position by standing matrix
-                        this._deviceToWorld.multiplyToRef(this._standingMatrix, this._deviceToWorld);
-
-                        // Correct for default height added originally
-                        var pos =  this._deviceToWorld.getTranslation()
-                        pos.y -= this._defaultHeight;
-                        this._deviceToWorld.setTranslation(pos)
                         callback(true)
                     }
                 })