| None. |
|
Makes the player's current head position and facing the centre of the seated view. At the next valid head sample, where the player's head is and the way it faces become the camera's position and forward direction. Pitch and roll stay as the player holds their head. The camera entity itself does not move. Give players a key or menu item for it, so they can re-centre after shifting in their chair. While tracking is invalid, the recentre waits until it returns. It needs a running session. Returns True when the recentre is queued, or False with the reason in VRLastError. Automatic VR is experimental, and works in 64-bit Windows programs through an OpenXR runtime and Direct3D 12. In 32-bit programs the commands are there, so the same source compiles, but InitVR returns False and VRLastError says why. For the full story - setup, frame rules and limitations - see the Automatic PC VR guide and its complete AutomaticVR.bb sample. See also: EnableVR, VRTrackingFlags, VRState. |