Skip to main content
Participant
April 5, 2015

How to adjust POV up or down

The methods for raising eye height (POV)
viewtopic.php?f=37&t=7448
no longer seems to work with version 5 Unity integration. How is this done now that the "Use Profile Height" is replaced with "Use profile data". Is there a script available? And how should it be used?
    This topic has been closed for replies.

    4 replies

    Inspiring
    April 7, 2015
    The height is pulled from the user profile.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Participant
    April 7, 2015
    Thanks for the reply.
    I know, it can be trivial to reply to see the same questions over and over again. But that there are many tasks that still requires specialized knowledge, that many of us dont have. I am dealing for example with journalism, graphics, video, audio and .... I'm not a programmer. And only now and then with VR and DK2. Therefore, I need help.
    So maybe you could reveal - or refer to a place where it is mentioned - how to actually do: "The height is pulled from the user profile." Presumably with an addition to one of the scripts Oculus has delivered.
    So my question is: How do you do it in practice.
    And as a journalist who writes about VR then I ask: Why is not there from the beginning of this opportunity to move up and down while you run through this three-dimensional Oculus-world?
    I love VR and my Oculus developer kit
    best wishes
    Inspiring
    April 7, 2015
    Ok, here is an example for you to test with.

    First, uncheck the "Use Profile Data" in the OVRPlayerController inspector.

    Then at the bottom of UpdateMovement() in OVRPlayerController.cs (around line 315) add:

    if(Input.GetKey(KeyCode.C)){
    CameraRig.transform.localPosition -= new Vector3(0.0f, 0.01f, 0.0f);
    }
    if(Input.GetKey(KeyCode.V)){
    CameraRig.transform.localPosition += new Vector3(0.0f, 0.01f, 0.0f);
    }
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Participant
    April 8, 2015
    Hi Cybereality!
    Thank you!
    It worked fine. I put it in just before line 297 #if !UNITY_ANDROID // LeftTrigger not avail on Android game pad

    Perhaps an update on this post viewtopic.php?f=37&t=7448
    can be a help to many.
    But thanks for the help once again.

    Flemming