I want to get the player height you have set in the oculus settings. For example if you are 185cm(6 feet), apparently the gameobject holding the camera objects has to be set to the same height, which is 185cm.
Is there a function or variable i can look up to get the player height, or do i have to calibrate for myself?
in the
OVRCameraRig
prefab, you'll find the componentOVRManager
, just set the Tracking Origin Type (under "Tracking") to Floor Level, that way the eyes will go to the player's head automatically.If you wanna know the height of the player, you can do that by
theCenterEyeCameraTransform.localPosition.y
, anyway, this will only work if you have configured theOVRCameraRig
's origin type tracking to Floor Level.