• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by dkostin · Apr 22, 2020 at 05:39 AM · oculusheightquestfloor

Oculus Quest heigth incorrectly initializing

When my Oculus Quest app first launches, the game floor is not being set to the correct height vs. the real world; the game floor is too low. If I reach a controller through the Guardian, the Guardian properly starts at the physical (real world) floor and goes up, and the hmd display aligns with the real world height (using the Guardian as a reference), but in the app, the Guardian is roughly a half meter (varies) above the floor object (at 0,0,0). I get the same offset regardless of if I launch the game sitting or standing. The OVRManager script is set to Quest and the "Tracking Origin Type" is set to Eye Level. The TrackingSpace and all the Anchor transforms are correct [(0,0,0), (0,0,0), (1,1,1)] and a sphere placed at the TrackerAnchor position aligns with my hmd at launch.

What setting do I need to change or how within the app do I initialize the height so the real world height (0 = the bottom edge of the Guardian) matches the game floor (y=0)?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by dkostin · Apr 22, 2020 at 08:19 PM

I found the issue has to do with my position the last time I reset the view / recentered the menu. If I was standing up then the Guardian was correct when I launched my app, but if I was sitting down then the Guardian was elevated by distance between my sitting height and my standing height; the same amount the main screen moves up and down.

Is there a way to detect and correct this when the app launches?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ROMAINSEIN · Jan 22, 2021 at 09:05 PM 0
Share

I have the same problem, it's driving me crazy...

avatar image
0

Answer by ContractorNation · Mar 04, 2021 at 08:56 PM

I had this issue when using Eye Level.


Eye Level works well for a game that uses a table in the scene, since the viewer's eyes need to remain "above the table" whether they are standing or sitting when they arrive. AFAIK


However, if I would rather have the physical floor aka guardian floor remain matched to the scene floor, I used Floor Level with a code change. I have an older Oculus integration using a Character Controller of Height 1.5.


Without a code change, using Floor Level, the scene floor appeared 1 meter beneath the guardian floor when my OVRManager's GameObject's y value was 1.6 in the Inspector, but dropped to 1.02 with continuous slight variation while in play mode, the TrackingSpace's y value was 0, and standing or sitting affected the CenterEyeAnchor's y value between 1.1-1.7. The 1.02 is affected by my floorGameObjectCube being 0.02 yScale and at -.02 yPosition.


The fix is to get the TrackingSpace adjusted to offset the OVRManager's height. Set your OVRManager's GameObject inspector's y value to the play mode's calculated slight variation height, in my case 1.02 and add this script to you OVRManager's GameObject:


 void Start()
     {
         // When OVRManager is set to Floor Level, use this so the guardian base is lowered to sit at the scene's floor
         // rather than being ~1 meter too high
         GameObject tracker = GameObject.Find("TrackingSpace");
         Vector3 guardianOrigin = tracker.transform.position;
         guardianOrigin.y -= gameObject.transform.position.y; // Reads from the awake init value before Oculus liveCalculates it (not dependent on actual head motion)
         tracker.transform.position = guardianOrigin;
 }
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

201 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Stereo Camera Culling in XR Interaction Toolkit with Oculus Quest, 1 Answer

Oculus: Works fine in editor but not working in build 1 Answer

Oculus Quest: Unable to grab grabbable object,Oculus Unity: Can't grab object with OVRHands 0 Answers

Unity Oculus VR lock rotation of a grabbed object 1 Answer

How can check if an game object is garbed in Unity VR oculus integration 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges