Search code examples
c#unity-game-engineconstraintsvirtual-realityoculus

Unity restricting Oculus Rift HMD to only allow for rotations and not position tracking


I want to lock the player position of the Oculus rift in unity to be in one place the entire time. They are able to move their arms but can look with their head, they also cannot lean or turn their body. For example if they are sitting in a chair the player is locked to that chair and they cannot move from it but they can interact with objects in front of the chair using the controllers.

I have no clue how to do this. Either through code or the inspector. Any solution will be greatly appreciated.


Solution

  • I have included a solution to this on a different question I asked and answered. Please see this post for a solution to this.