Skip to content

Commit

Permalink
lock the view direction for testing (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
RenfengLiu authored Nov 8, 2024
1 parent 017e04b commit 0646365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ppx/xr_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0646365

Please sign in to comment.