Forum Discussion

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

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.

3 Replies

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