Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
nerdVRBuddy's avatar
8 years ago

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

2 Replies

Replies have been turned off for this discussion
  • owenwp's avatar
    owenwp
    Expert Protege
    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.