ABSTRACT

Imagine a virtual racing car driver sitting in the seat of a virtual racing car. Their head is resting against the headrest in the virtual world. By resetting the view and setting Steam virtual reality (SteamVR) tracking to a seated configuration, the Unity camera will be oriented to player’s view without changing the camera’s position in the 3D Scene. The view can start anywhere in the entire VR play area depending on wherever the headset is at the time. For a seated experience, we need to tell the tracking system to start off in a fixed location, instead. OpenVR is another class belonging to the Valve.VR namespace. It provides several system-level commands and properties such as resetting the view and accessing some other hardware features. The chapter looks at the taking control of the camera away from the viewer and relocating it to a fixed place in the virtual world.