r/oculusdev • u/BrainSlugs83 • Feb 21 '20
Question How to disable Oculus Quest recentering in Unity XR 2019.3?
Previously we could just call ovrp_SetReorientHMDOnControllerRecenter(false);, and set the tracking level to stage, but using 2019.3 with the new XR Plugin workflow, it looks like even though this method returns true, the setting is not honored, and the recenter will still teleport you manually.
The comments layout why you would want to disable it:
If true, the Reset View in the universal menu will cause the pose to be reset. This should generally be enabled for applications with a stationary position in the virtual world and will allow the View Reset command to place the person back to a predefined location (such as a cockpit seat). Set this to false if you have a locomotion system because resetting the view would effectively teleport the player to potentially invalid locations.
Also, ovrp_GetAppShouldRecenter() seems to always return false, even during a recentering operation. So I have no idea why AllowRecenter used to work on the Quest, but the calls appear to not be working now, in 2019.3.
So, in 2019.3, using the new XR Plugin system -- how can I disable location recentering, so that the player can't use it to teleport behind walls, etc.?
3
4
u/Oculus_NinjaGG Oculus Dev Support Feb 21 '20
Thanks for flagging this, I've opened a task with our team to take a look.