Get height of guardian floor in Unity world space
Is there a definitive method for getting the height of the Oculus guardian floor in Unity world space? I'm in 2019.4, using the older XR system - not able to use the new XR subsystem for this project. I have the latest Oculus Integration package, so have access to OVRManager etc. Thanks!737Views0likes0CommentsIs there a way to check if player goes outside of the guardian play area on quest within Unity?
I have some objects that follow the player's position. Problem occurs when the player goes outside of the play area and then upon reentry, the objects dissappear. What I would like to happen is to reset the position of said objects to their original position when the player moves outside of the play area/ tracking becomes lost. I've tried subscribing to the OVRManager.TrackingLost and OVRManager.TrackingAcquired events on each of the objects. These seem to work when I use the headset with Oculus link. However it doesn't work when I make a quest build as the objects disappear when moving outside of the guardian boundary. I'm unsure if they're being destroyed or moving to a position that's out of view, I don't have a console on the quest build. I've been reading the OVRBoundary page (sorry can't post links yet) which suggests that it should be possible to get what I need by using the OVRBoundary. However, there is no code examples on how this could be achieved and clicking on the Developer Reference link takes be back to the same site. Would appreciate on some guidance from anyone who have solved this issue before. Basically I just need to know when the player moves outside of the play space (to the point where to headset asks the player to move back in or set up a new play area) and when the player reenters to play area. I figure I should be able to reset the objects when I know how to do that. Thanks1.2KViews0likes0CommentsHow 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 controllers670Views0likes2Comments