Skip to main content
HiroProtag0nist
Honored Contributor
July 31, 2016

Attaching OVRPlayerController To A Moving Platform

I've been trying to do this all day - jump to a platform which is moving from point A to B.  You should be able to let go of the controls and just move with the platform.

I can do this with a default Unity character but just can't seem to do it with the OVR one.  

I don't think there should be any need to show my code - what could be the differing factor that would change this?

Many thanks for any ideas.
    This topic has been closed for replies.

    3 replies

    Inspiring
    August 1, 2016
    This was never supported with OVRPlayerController, as far as I can tell.

    Probably the easiest thing would be to use a Unity player controller and customize it to work well in VR. I mean, it should work pretty much out the box, but there are a lot of things that can cause discomfort (head-bob, mouse pitch, etc.) that you'll have to disable.

    In theory, I guess, you could add the physics code to the OVRPlayerController yourself but I never tried so I can't really help you there.
    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
    HiroProtag0nist
    Honored Contributor
    August 2, 2016
    Thanks cyber.

    I've got it working and it is the same for the OVR player and default Unity.  I believe my problem was the platform i was moving on to was too small for the OVRPlayerController, which is slightly larger than the Unity one.

    Anyway, it's done by a script similar to "OnTriggerEnter" make OVRPlayerController a child of the platform and of course when you exit you're not a child of...

    Very simple which made it all the more annoying when it didn't work.
    Big PC, all the headsets, now using Quest 3
    Inspiring
    August 2, 2016
    That works too!
    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