From 0646365210937d767fdba16166b1d2370fce280f Mon Sep 17 00:00:00 2001 From: Robin Liu Date: Fri, 8 Nov 2024 13:38:40 -0500 Subject: [PATCH] lock the view direction for testing (#530) --- src/ppx/xr_component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ppx/xr_component.cpp b/src/ppx/xr_component.cpp index c5b5202be..5d704d983 100644 --- a/src/ppx/xr_component.cpp +++ b/src/ppx/xr_component.cpp @@ -927,7 +927,7 @@ void XrCamera::UpdateCamera() const quat orientation = FromXr(mView.pose.orientation); mEyePosition = FromXr(mView.pose.position); - mViewDirection = glm::rotate(orientation, forward); + mViewDirection = PPX_CAMERA_DEFAULT_VIEW_DIRECTION; mTarget = mEyePosition + mViewDirection; mWorldUp = glm::rotate(orientation, up); }