Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
nnnatasa's avatar
nnnatasa
Honored Guest
1 year ago

Pawn position and orientation in VR in Unreal Engine

Has anyone had a problem running the VR preview in Unreal Engine 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. I need the VR pawn view to match the position, height and orientation of the camera that exists in the scene at every startup. If anyone knows what the problem is or has an inkling, I would be very grateful for an answer. 

2 Replies

Replies have been turned off for this discussion
  • The initialization of the VR scene transformation depends on the initialization of your headset.

    Stage mode: your guaridan area shape define your VR scene origin. 

    floor  level mode : your camera direction. you can change the VR scene direction with long pressing "Meta button"

    If you want to open the game with same direction, you need "stage mode" and store Pawn transformation. 

     

     

  • I found the solution to this issue a few days ago and remembered seeing this post! I don't entirely understand what was made, but if you have any questions please ask! (someone figured this out back in 2019 but there was no explanation of what did what so it was hard to figure out still lol)