Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

(Unity) OVRPlayerController does not move with the OVRCameraRig

GiulcooGiulcoo Posts: 1
NerveGear
edited December 2019 in Unity Development
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...

Comments

  • rh_galaxyrh_galaxy Posts: 121 Oculus Start Member
    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.
Sign In or Register to comment.