Forum Discussion

Giulcoo's avatar
Giulcoo
Honored Guest
6 years ago

(Unity) OVRPlayerController does not move with the OVRCameraRig

I have a problem and can't find a solution anywhere. The problem is that if I move the headset in the game in Unity, the OVRPlayerController does not move. So now if i walk into objects, sometimes I can't move near the object or sometimes I walk into the object...

1 Reply

  • rh_galaxy's avatar
    rh_galaxy
    Heroic Explorer
    When you move the headset with your head, only the camera in OVRCameraRig will move. Likewise if you move the player with code in unity, the player holding the camera will move.

    There are two steps of movement here, the one the head does and the one you do to the player in code. They need to coexist and you may need to push the player backwards if the head moves forward. Many have done it this way.

    Also the OVRPlayerController is not necessary if you have your own player mechanics it can be a container holding the OVRCameraRig instead.