Forum Discussion

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

OVRPlayerController - how to allow for path animation?

Hi all, the character (seated) is in a vehicle that animates along a spline (think flight path). After 10-15 seconds the character falls to the ground unexpectedly. The issue is not collision based and can be solved by disabling the OVR Player Controller - so I guess I need help to edit this file to allow for disabling gravity/slope or something? Any help greatly appreciated :-) Unity Noob so please offer an explanation of why X should be disabled in this script so that I can learn at the same time.

5 Replies

Replies have been turned off for this discussion
  • Awesomely fast response - thanks for that :-)
    Would I still have the ability for the "R" key to recenter the rift if I changed player controller?
    Thanks again for the reply.
  • Yes, the recenter (R key) is on the CameraRig (OVRManager) so it will continue to work.
  • Awesome - thank you very much for your consideration and expert advice. :P
  • thorp's avatar
    thorp
    Honored Guest
    For what it's worth, in the original version of the Hitchhiker VR app I used CameraPathAnimator from the unity asset store. A number of strange issues came up most of which were rigid body related. Eventually I was able to resolve them all but it took a while and I don't remember all the hurtles.

    Thanks for the link CyberReality, for some apps using the Unity FP controller will be a big win and with your code we won't all have to reinvent the wheel!