Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit9a85df95a3

README.md

xr_menu

The person's VR on this client.

It declares the VR group of the client settings (clientSettings), the tab the settings menu shows while this client can draw to a headset (a session holds focus, or an OpenXR runtime is installed and the engine may enter VR; xr_menu.available()). Each setting starts from its declared default:

  • See from — first person (the character's eyes) or third person (the game's camera), where the world offers the choice; the right thumbstick's click switches it too, and the setting shows the switch;
  • Comfort — the presets Comfort (snap turns of 30°, a strong vignette while the game moves the person), Default (snap turns of 45°, a light vignette) and Expert (smooth turning, no vignette); changing a setting below on its own reads as Custom;
  • Turning — snap or smooth, and the Snap angle;
  • Comfort vignette — how dark the view's edge grows while the game moves or turns the person;
  • the actions Recenter, Enter VR and Exit VR, or Quit in place of Exit VR on a standalone headset app, which has no window to return to (xr.returnsToFlat()).

While a world is played in a headset, the left controller's menu button (or the left palm turned toward the person and pinched) is the pause action: it opens and closes the app menu (appMenu.toggle()), the home menu on a world panel with the World, ZeroMind and System tabs. Editing a world, the editor's dock carries the ways into the menu and out of VR.