Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
blogfather's avatar
blogfather
Honored Guest
10 years ago

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?

4 Replies

Replies have been turned off for this discussion
  • 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
  • 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);
    }
  • 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