Forum Discussion
lizhucheng
2 years agoHonored Guest
Issue with Oculus Recenter Function Not Working in Script
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.
2 Replies
- romtecMaxExplorer
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.
- romtecMaxExplorer
and downgrading to an older version of the XRinput and OpenXR integrations restored the functionality 🙂
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 days ago
- 5 months ago