Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
5 years ago
SolvedApproved

Roomscale reset HMD

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

 

 

 

  • Anonymous's avatar
    Anonymous
    5 years ago
    Approved

    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

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    Approved

    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 😞

  • Anonymous's avatar
    Anonymous
    Approved

    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.