Skip to main content
March 30, 2021
Solved

Roomscale reset HMD

  • March 30, 2021
  • 2 replies
  • 2658 views

Hi,

 

I am trying to make a roomscale app for the Oculus Quest. I am using blueprints. I have a camera attached to a VROrigin (scene component).

 

When I hold the Oculus button on the Oculus Quest the app re-centers based on the direction of the HMD. This is a problem in roomscale since it rotates the level.

 

In project settings/OculusVr  disabling "recenter HMD with Controller" does not stop it.

 

VRNotifications (delegate-VRControllerRevcentered) is called when the button is held. I can do something after it is called, but I would really like to disable it or find a workaround so that it doesn't rotate the level or change your position.

 

 

THANKS FOR READING

 

 

 

This topic has been closed for replies.
Best answer by

Part of the problem is that the camera and vr hands are children of the pawn. So its difficult set the parent to the transform of the child. I made placeholder actor follow my camera transform. When VR resets, I set the pawn to the position/rotation of the placeholder actor, then I reset orientation and position again. Maybe not perfect, but decent. 

2 replies

March 30, 2021

I am considering offsetting the pawn based on camera position and rotation immediatly after the Oculus system resets the view. 

 

I have also heard of devs separating the camera from the pawn (or into two separate actors)

 

I feel like there should be an easier solution 😞

Answer
March 30, 2021

Part of the problem is that the camera and vr hands are children of the pawn. So its difficult set the parent to the transform of the child. I made placeholder actor follow my camera transform. When VR resets, I set the pawn to the position/rotation of the placeholder actor, then I reset orientation and position again. Maybe not perfect, but decent.