Move OVRPlayerController on a predefined path
I'm creating a VR game for Oculus and I want to move the player inside a building in a predefined path. The path will consist of staircases and bends. I have used the OVRPlayerController to integrate Oculus and I'm planing to move the controller on a predefined path while maintaining the physical body movement effects like vertical and horizontal movements, actual body height etc.
I have tried to move the OVRPlayerController with use of a animation path but it doesn't work properly when come to dealing with the actual body height and climbing staircases.
So how can I move the playercontroller on a predefined path while proving the real like VR experience to the user.
Answer by HKNormann · Oct 19, 2020 at 12:47 PM
I would recommend setting a parent object above OVRPlayerController at floor height and animating this object to move. set OVRCameraRig tracking origin to floor. You can get the X-Z difference between OVRPlayerController and CenterEyeAnchor to check for offset to make sure they're at the middle of the path.
Your answer
Follow this Question
Related Questions
Oculus Go storage file path 3 Answers
Why is my projection messed up and green in my Android VR build but not in my game view? 1 Answer
Physics question in VR when hitting an object with a held object 1 Answer
Tracking not working for both controllers at the same time on Oculus Quest build 7.0 6 Answers