Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question SteamVR Recenter Seated Position?

Discussion in 'VR' started by kayronjm, Feb 21, 2022.

  1. kayronjm

    kayronjm

    Joined:
    Jun 15, 2019
    Posts:
    34
    I've been trying to get this to work for hours but cannot find the correct commands in C#. What I'm trying to do is call the event you can trigger yourself when you go to the SteamVR menu using the VR controllers and click the recenter button. The same but in C# within my game. Nothing seems to work and the supposed miracle solution (https://forum.unity.com/threads/openvr-how-to-reset-camera-properly.417509/#post-2792972) doesn't work anymore as Valve.VR.OpenVR.System.ResetSeatedZeroPose() appears to no longer exist.

    Lots of games I've played in VR have this feature. You press a button and it resets the game view to your current body orientation, so it can't be impossible to code in. Thank you in advance.
     
    vivian-a likes this.
  2. joeysipos

    joeysipos

    Joined:
    Jul 28, 2015
    Posts:
    41
    You figure out a solution to this?