Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
sourcenity's avatar
sourcenity
Start Member
5 years ago
Solved

Keeping a Guardian Room Scale Playspace Centered at 0,0,0

Hi. The Oculus Quest/Rift software allows the setting of a Guardian space, which has a defined width, length, and center in any given room. The Guardian does not change when resetting the view or ...
  • sourcenity's avatar
    5 years ago

    Anonymous Unfortunately, the Oculus integration is only informed that a change took place, but the recentering of Unity's world center (0,0,0) takes place outside of the integration (I believe within the package DLLs, but definitely not as part of the asset). So, we can't just ignore the call.

     

    It is possible to use the OVRBoundary* methods to grab the actual center of the guardian and then move the rig in the opposite direction and rotation, but this is more of a hack than a solution.

     

    However, I did find a solution: On Quest, you can switch the TrackingOrigin from Eye or Floor to Stage, which will keep Unity's world center and orientation in the center of the guardian. This is what I want, so it's fine. It doesn't work on Quest-via-Rift, though, and I haven't tested it on the purely PC hardware (Rift).

     

    Thanks.