Skip to main content
Inspiring
May 11, 2017

How do I make sure my objects are within the Play area(Guardian)?

I'm making a Boxing Gym with a bag. I started doing it in Unity just a plane at 0 0 0. and i made walls. Now , when i push play the bag is not within the play area. it's further away where i would bump into my computer. I tried to  to translate the Gym along with the bag a bit  but that didn't help.

How do i make it so that my gym and bag will be within the boundaries?
ps. for the meantime i'm using OVRPlayercontroller but i'm not using the xbox controller to move because ultimately my game /simulation will be just to punch the bag with Touch controllers
This topic has been closed for replies.

2 replies

Participant
May 16, 2017
Hi,

It sounds like something that you could experiment with is adding a locomotion mechanic to your app, like teleportation for example.  This could alleviate some of your issues regarding objects being out of reach due to your play area restrictions.

You can find some working examples within our Oculus Sample Framework here:

https://developer3.oculus.com/blog/introducing-the-oculus-sample-framework-for-unity-5/
Up and Coming
May 17, 2017
The SDK provides a rectangle for your play area, which can be used to place colliders.  However, from my observations that rectangle is not quite centered correctly.  I did not find any way to get accurate box origin/extents in the tracking space of the HMD.