Forum Discussion

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

Is there a way to recenter the Gear VR controller from code (Unity)

When recentering the camera in my game (loading a menu etc) the controller doesn't recenter to the new rotation. I couldn't find anything in the code to do this.

Am I missing something?
  • Hi, this is now available in the 1.14 Utilities. Please refer to OVRInput.RecenterController().

5 Replies

Replies have been turned off for this discussion
  • Hi @imperativity

    Is there any plans to add this? I cannot expect the user to recenter the controller just to use our game.

    It would currently be a better user experience in this case to not recenter the headset at all as it breaks the link to the controller. I cannot rotate my world the opposite direction to mimic the effect as I have a lot of static objects with baked occlusion to hit our performance targets.
  • kersk's avatar
    kersk
    Meta Employee
    Hi, this is now available in the 1.14 Utilities. Please refer to OVRInput.RecenterController().
  • kersk's avatar
    kersk
    Meta Employee
    @hugoglitchers -- FYI, based on internal and external developer feedback, recentering the headset will likely be changing soon to also automatically "rebase" the GearVR controller's frame of reference in relation to the headset's updated pose as expected.