Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
kyle.luster's avatar
kyle.luster
Honored Guest
4 years ago

Finding Boundary Coordinates?

I'm developing a simulation in the Quest 2 using Unity and would like to access the boundary coordinates. In the past, there was a GetGeometry option but it appears to have been deprecated. Can anyone point me in the right direction here?

3 Replies

  • Hello!

     

    It was a few months ago that you asked your question, and I have discovered that:

     

    OVRManager.boundary.GetGeometry(OVRBoundary.BoundaryType.PlayArea)

     

    will indeed return 4 Vector3s that you can use to define the play area, in world space.

     

    However, if you pass in the alternate enum value OVRPlugin.BoundaryType.OuterBoundary, it returns a 0-length array.

     

    Is this temporarily broken, or has it been fully deprecated (to make it compatible with a similar OpenXR API or something)?

     

    Thanks,

    David