Search Unity

Question How to accuratly get player height without using the Guardian? Help neded.

Discussion in 'VR' started by bunnykill, Oct 13, 2021.

  1. bunnykill

    bunnykill

    Joined:
    Jun 12, 2019
    Posts:
    11
    Hello,

    my name is Rico and im a new VR dev, i use the Oculus Quest 2.
    I use the following packages XR interaction Toolkit and the XR Plugin manager and the Oculus XR plugin, for my player i use the XR rig.

    I've never worked with VR so this is all every new to me, the project im working on currently needs to have player height callibration without the Guardian active.

    (Fast explentation of my project: what im trying to do is make an 3D world map exactly to a real world room anf walk around in it and do "stuff" but mainly just walk around and look. but the height is an important piece of this puzzle because it needs to have an IRL feel because you walk in real life in an exact mapped room.)

    the issue is that when the guardian is on the height is ofcourse more accurate but he guardian can only go to a 10x10~ and the room i use is 15x22~ (this can not change) so my question is: Is there anyway to make an automatic height calibartor ? or anyway to make a floor tracking but without the gurardian. or is there anyway i can add and subtract height from the player? i know the Y pos from the camera you use does this but it doesnt wanna change values because its updating every frame.

    if something i said cant happen but it can or if anyone has a fix to my issue please let me know!

    much love and thanks from me!
     
  2. Dark-Table

    Dark-Table

    Joined:
    Nov 25, 2008
    Posts:
    315
    You could have the user put a controller flat on the floor. This would give you the minHeight. Then have them stand up straight. standingHeight - minHeight ~= userHeight. Keep in mind that the standingHeight would be eye level. The top of the head would be a few centimeters above that.

    You should test walking around in that 15x22 space a lot. I've had the Quest lose tracking while guardian was off in very simple spaces. Maybe warn users about not doing fast movements (like spinning in place).
     
    DevDunk likes this.
  3. bunnykill

    bunnykill

    Joined:
    Jun 12, 2019
    Posts:
    11

    this is a good idea, ill try this much love