Skip to main content
New Participant
July 19, 2013

Camera Height control during Game simulation with Unity?

I'm trying to figure out why the camera height/player height cannot be changed in game mode. I'm using a flat terrain, yet the normal keystrokes (5 and 6) are not working. I''m running on a Mac OS 10.6.8 platform, and I'm able to use the height controls in the stand-alone demo (keystrokes + and -). Thanks!
    This topic has been closed for replies.

    5 replies

    Inspiring
    July 19, 2013
    It doesn't seem like the 5/6 keys work on the pre-compiled demo, but if you get the Unity files and compile yourself it does work.
    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
    jaymalloyAuthor
    New Participant
    July 20, 2013
    Thanks for getting back to me.

    When I compile the scene I get this:
    https://www.dropbox.com/s/h04tfgwdbssxaat/screengrab1.jpg

    and I noticed the default settings on the project settings are:

    https://www.dropbox.com/s/9cz70zsa6frgrnv/unity%20screengrab.jpg


    What do I need to change? Thanks!
    Inspiring
    July 23, 2013
    Check out the "UpdateEyeHeightOffset()" function in OVRMainMenu.cs.
    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
    jaymalloyAuthor
    New Participant
    July 23, 2013
    Thanks,
    That's exactly what I was looking for!
    Jay
    Inspiring
    July 24, 2013
    The latest build scene sets a variable on in OVRPlayerController->OVRCameraController called UsePlayerEyeHeight. This will take the eye height set by the configuration tool. If you are playing with the Tuscany demo out of the box from the latest integration (0.2.3) you may find that this is stopping you.

    Just turn UsePlayerEyeHeight off and 5/6 should start working again. It should only happen if you have a profile set up via the Config Tool.
    Peter Giokaris Senior Software Engineer