Unity3D GearVR Controller Not Recentering
I'm trying to recenter the GearVR motion controller via code in my Unity3D game. I've tried called to OVRInput.RecenterController(), OVRInput.RecenterController(OVRInput.Controller.All), and InputTracking.Recenter(). None of these have worked, is this functionality broken, or is there something else I need to do besides calling the recenter function?
EDIT:
After debugging the OVRPlugin class, everything seems to be returning that re-centering was successful. It's logging 4 controllers connected (which is odd, because the only controller connected is the Motion controller), each controller is registering as needing to be re-centered, and OVRPlugin.RecenterTrackingOrigin(OVRPlugin.RecenterFlags.Controllers) is returning true. It seems like Oculus thinks everything is re-centering correctly, but the controller is still facing the wrong direction.
Pressing the Home button re-centers the controller properly, but I'm looking for a way to do this from code for a large-scale ride.
EDIT 2:
Using verbose logging with ADB, I'm seeing the following error message whenever I call OVRInput.RecenterController()
EDIT:
After debugging the OVRPlugin class, everything seems to be returning that re-centering was successful. It's logging 4 controllers connected (which is odd, because the only controller connected is the Motion controller), each controller is registering as needing to be re-centered, and OVRPlugin.RecenterTrackingOrigin(OVRPlugin.RecenterFlags.Controllers) is returning true. It seems like Oculus thinks everything is re-centering correctly, but the controller is still facing the wrong direction.
Pressing the Home button re-centers the controller properly, but I'm looking for a way to do this from code for a large-scale ride.
EDIT 2:
Using verbose logging with ADB, I'm seeing the following error message whenever I call OVRInput.RecenterController()
VrApi_Input: vrapi_RecenterInputPose: has been DEPRECATEDDoes this mean this is an issue with OVRInput? I'd be surprised to hear this has gone unnoticed so far, I imagine many people would want to recenter GearVR controllers.