Selaa lähdekoodia

remove offset from starting position logic

Trevor Baron 7 vuotta sitten
vanhempi
commit
4cd5be117c
1 muutettua tiedostoa jossa 0 lisäystä ja 7 poistoa
  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)
                     }
                 })