Skip to content

Commit

Permalink
Merge pull request #13448 from RaananW/rightHandedXR
Browse files Browse the repository at this point in the history
[XR] Remove a 180 degree flip (an old relic)
  • Loading branch information
sebavan authored Jan 18, 2023
2 parents eba84f4 + 7ba0366 commit 5df3185
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/dev/core/src/XR/webXRCamera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ export class WebXRCamera extends FreeCamera {
this._lastXRViewerPose = undefined;
}

private _rotate180 = new Quaternion(0, 1, 0, 0);

private _updateFromXRSession() {
const pose = this._xrSessionManager.currentFrame && this._xrSessionManager.currentFrame.getViewerPose(this._xrSessionManager.referenceSpace);
this._lastXRViewerPose = pose || undefined;
Expand Down Expand Up @@ -246,8 +244,6 @@ export class WebXRCamera extends FreeCamera {
currentRig.position.z *= -1;
currentRig.rotationQuaternion.z *= -1;
currentRig.rotationQuaternion.w *= -1;
} else {
currentRig.rotationQuaternion.multiplyInPlace(this._rotate180);
}
Matrix.FromFloat32ArrayToRefScaled(view.projectionMatrix, 0, 1, currentRig._projectionMatrix);

Expand Down

0 comments on commit 5df3185

Please sign in to comment.