0 votes
by (170 points)

Unity Version: 2020.3.33f1
SDK: PicoXR Plugin 2.0.4
Device: Pico Neo 3

Hello,

I'm working on a Kiosk App which automatically does recenter the camera once the HMD is put on by an user. On other Hardware like Oculus Quest and Google Cardboard, this worked fine via XRInputSystem but on Pico it has no effect.

I have tried out calling:

PXR_Plugin.Pxr_ResetSensor(ResetSensorOption.ResetRotation);

and

PXR_Plugin.Sensor.UPxr_ResetSensor(ResetSensorOption.ResetRotation);

but both those calls also do nothing. What is the correct approach to make Recenter from code possible?

Thanks in advance.

1 Answer

0 votes
by (1.1k points)

Hi,
try the following code to implement the recenter:

        InputDevices.GetDeviceAtXRNode(XRNode.Head).subsystem.TryRecenter();
by (170 points)

As mentioned in my entry posting, using the XRInputSystem for Recentering sadly does not work.

by (1.1k points)

This is my test demo and apk, you can try it on your device. In the demo scene, press Trigger Button of the Left controller to recenter.
https://drive.google.com/file/d/1guoj_asAIXPF39vYFbPiND9b_axRaSA3/view?usp=sharing
Or you can try changing Tracking Origin Mode to Floor first to see if the code works.
enter image description here

...