Jump to content

[FAQ] How to measure the related height of HMD in your game

Tony PH Lin

Recommended Posts

Many developers are asking how to measure the related height of the player in the game on Vive Focus Plus.

Since the tracking characteristic from QCT, there is no absolutely position info. in the space.

However we provide an alternative way that you can still take a reference to receive the height of player and adjust dynamically inside your game.

Please refer below steps to receive the absolutely height by measure the distance between HMD/controller by touching ground and trigger event to record “Y-axis” value.

Let us know if it's workable and helpful for you.


 1.      Inside WaveVR -> head, set “Origin” to “Origin On Head”


2.      In your code, re-center the position of head:
Interop.WVR_InAppRecenter (WVR_RecenterType.WVR_RecenterType_RotationAndPosition);

3.      Put the dominant controller on the ground and trigger any event for content.

4.      Inside your code, get the y-axis value of the controller and add minus sign to receive the height:
ex: -WaveVR_Controller.Input (WaveVR_Controller.EDeviceType.Dominant).transform.pos.y


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...