07-16-2023 12:13 AM
Hello, I am currently developing a VR application using the Oculus SDK. I am trying to implement a feature that recenters the player's view when they reach a certain point. For this, I am using the OVRManager.display.RecenterPose(); method.
However, when I call this method, the message "Recenter event detected" is printed in the debug log, but the player's view is not actually recentered. I have tried various ways to solve this problem, but it still remains unresolved.
Here is the code I am using:
public void ResetPlayer(Collider other)
{
other.transform.position = questPos.transform.position;
other.transform.rotation = Quaternion.Euler(questPos.transform.eulerAngles);
OVRManager.display.RecenterPose();
}
This code is called when the player enters a certain collider, and after resetting the player's position and rotation, it calls RecenterPose().
If anyone has any advice or solutions regarding this issue, I would greatly appreciate your input.
07-18-2023 08:49 AM
Since upgrading to the latest OpenXR and Unity XR Input packages, I have the issue that my view does not recenter anymore, even when the user long-presses the oculus menu button. This might be related.
07-18-2023 08:54 AM
and downgrading to an older version of the XRinput and OpenXR integrations restored the functionality 🙂