I’m creating an app for GearVR where I need the last view direction to be reinstated when the user takes off the headset and puts it back on (detected using OVRPlugin.userPresent).
By default, when the user takes off the headset and puts it back on, the view direction is reset to the starting direction.
I’ve tried storing the InputTracking.GetLocalRotation(VRNode.CenterEye) just before userPresent = false and then applying that Y rotation onto various things in the scene but nothing works quite right.
Is there a good way to set the starting direction of the OVRCameraRig on game resume?
I’ve seen something about using OVRCameraRig.UpdatedAnchors, but I don’t quite understand how to use this, is this the approach I should take and can someone explain how to use this?
Many thanks,
Rob