Forum Discussion

AT.Test's avatar
AT.Test
Explorer
2 months ago

Switch between stationary and boundaries

Hi all,

We are investigating a use case were we would require to switch between stationnary and guardian boundaries.

Is this possible ? Are there any APIs which would allow us to trigger those setup change from code ?

Thanks

Cheers

 

 

5 Replies

  • Hello there!

    You cannot determine the boundary mode for the users as it is a safety feature and cannot be circumvented. You can use Boundaryless if you are creating a passthrough project. Boundaryless disables the boundary system for unique passthrough experiences, but disables when the app or game returns to an immersive experience. 

    Hope this helps!

    • TomVR's avatar
      TomVR
      Protege

      A good feature for boundaryless apps is to have a function to enable at least the auto created boundary if they want to go fully immersive for a part. (say you walk across the room, sit down and go fully VR) 

      Our solution currently is to have a defined region that when they leave from the seated position immediately bring back full passthrough

  • Not sure if this helps your case, but you can consider setting up your own custom "stationary boundary" while retaining the native guardian boundary by Meta. That way, you can selectively toggle on/off your stationary boundary via scripting whenever you want to.

    • RayNg_XRBootcamp's avatar
      RayNg_XRBootcamp
      Protege

      You can create a capsule trigger with radius based on to how large you want your "stationary boundary" to be, positioning at the centre of your Camera Rig. Then you can add another sphere collider on your "CenterEyeAnchor" object, and utilize "OnTriggerEnter/Exit" to determine whether player is out of bounds.

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions