Pawn position and orientation in VR

Has anyone had a problem running the VR preview with player position? Namely, when I start the game and put on the headset (Oculus Quest 2), it happens that my virtual space rotates or moves by certain values. It is extremely important to me that when starting the game in the program, the player is always in the same place and in the same orientation, because I overlap the table from reality with the virtual one, so that they really coincide without having to move the virtual one every time. If anyone knows what the problem is or has an inkling, I would be very grateful for an answer.

Hi Lilnataa, Welcome to the Forums.

I’d start with two things:

  1. Press and hold the Oculus button to trigger a recentering.

  2. Wire up an input to trigger the ‘Reset Orientation and Position’ Blueprint node. (OpenXR plugin)

Let us know if you’re still having troubles.

1 Like

Hi Astrotronic! Thank you for your response! Unfortunately this doesn’t solve my problem. The orientation is reset, but not to the camera position. I need the VR view to match the position, height and orientation of the camera that exists in the scene at every startup.