Forum Discussion

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

Reseting player position

Hello

shortly, im trying to reset my players position to the default position (which is the position where you can press the oculus button and hold and it resets you there) . I want this to work if user take off the headset. Tried many things including

  void Start()
    {
        OVRManager.HMDMounted += HandleMounted;
        OVRManager.HMDUnmounted += HandleUnMounted;
    }

    private void HandleUnMounted()
    {
        OVRManager.display.RecenterPose();
     }

But it doesnt work. I create a room scale place. So i have walk in real world which make me move in virtual world. If i press to the oculus button and hold that resets me perfectly. But i couldnt manage to make it work with headset of. I also tried giving positions manually to : Localavatarwithgrab , ovrcamerarig, tracking space.. Non worked.. 


PS: im working in unity

Thanks a lot for replies.

2 Replies

  • this is explicitly disabled on quest, you need to use the oculus button long press
  • yigit_87's avatar
    yigit_87
    Honored Guest
    Do you know why? I had to bring the world to me instead....