Skip to main content
New Participant
March 31, 2015

sdk .5 - Where is OVRCameraController? Player height?

In the latest download OVRCameraController with 'Use player eye height' is gone. I can lift my player off the ground somewhat by setting Height to 0 (?) in OVRPlayercontroller, but he is still very short. how can I make him taller?
    This topic has been closed for replies.

    5 replies

    Inspiring
    April 2, 2015
    You can change the height inside the Oculus config util.

    Valid values range from 132 cm to 229 cm.
    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
    Up and Coming
    April 22, 2015
    How do we override that in code?
    Check out my Unity VR development blog: http://talesfromtherift.com @peterept
    Inspiring
    April 22, 2015
    So in the OVRPlayerController inspector, uncheck "Use Profile Data".

    Then in OVRPlayerController.cs, add the following at the bottom of Update() (around line 202):

    Vector3 heightAdjustment = new Vector3 (0.0f, 0.01f, 0.0f);

    if(Input.GetKey(KeyCode.I)){
    CameraRig.transform.localPosition += heightAdjustment;
    }
    if(Input.GetKey(KeyCode.K)){
    CameraRig.transform.localPosition -= heightAdjustment;
    }
    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
    May 5, 2015
    I got an error on CameraRig.transform, I changed it to

    if(Input.GetKey(KeyCode.I)){
    CameraController.transform.localPosition += heightAdjustment;
    }
    if(Input.GetKey(KeyCode.K)){
    CameraController.transform.localPosition -= heightAdjustment;

    and that worked. I also lowered the "Y" increment to .005.

    Thanks for the help.
    Up and Coming
    May 31, 2015
    Thank you!, I've been trying to change height all day in different ways until I looked here. phew. this works very well
    j.j. morris - tekrok - https://share.oculus.com/app/tekrok