Please Select Your Location
Australia
Österreich
België
Canada
Canada - Français
中国
Česká republika
Denmark
Deutschland
France
HongKong
Iceland
Ireland
Italia
日本
Korea
Latvija
Lietuva
Lëtzebuerg
Malta
المملكة العربية السعودية (Arabic)
Nederland
New Zealand
Norge
Polska
Portugal
Russia
Saudi Arabia
Southeast Asia
España
Suisse
Suomi
Sverige
台灣
Ukraine
United Kingdom
United States
Please Select Your Location
België
Česká republika
Denmark
Iceland
Ireland
Italia
Latvija
Lietuva
Lëtzebuerg
Malta
Nederland
Norge
Polska
Portugal
España
Suisse
Suomi
Sverige

How do I find out the distance of the head from the floor?

Use Origin in the Inspector to find out the distance of the head from the floor.
  1. In Inspector, set Origin to WVR_PoseOriginModel_OriginOnHead.
  2. Inside your code, re-center the position of the head by calling the function
    Interop.WVR_InAppRecenter (WVR_RecenterType.WVR_RecenterType_RotationAndPosition);
    After re-centering, the position of the head will be (0, 0, 0).
  3. Place the dominant controller on the floor to get the distance of the controller from the floor.
    // Y-coordinate means the height relative to the Origin.
    WaveVR_Controller.Input (WaveVR_Controller.EDeviceType.Dominant).transform.pos.y;
    For example, if y-coordinate is-1.70, the distance of the head from the floor is 1.70m. Simply change the negative y-coordinate value to positive to know the distance of the head from the floor.
Submit
Thank you! Your feedback helps others to see the most helpful information.