isSeated.lua 947 B

12345678910111213141516171819202122232425262728293031
  1. return {
  2. tag = 'playArea',
  3. summary = 'Check if the coordinate space is standing or seated.',
  4. description = [[
  5. Returns whether the headset coordinate space is in seated mode.
  6. Seated mode is enabled by setting `t.headset.seated` to true in `lovr.conf`. In seated mode,
  7. `y=0` will be at eye level, instead of on the floor like in standing-scale experiences.
  8. The seated coordinate space can be more convenient for applications that are rendering a simple
  9. interface in front of the user (like a video player) instead of a roomscale 3D scene. y=0 will
  10. also be at the correct height at startup, whether the user is sitting or standing.
  11. ]],
  12. arguments = {},
  13. returns = {
  14. seated = {
  15. type = 'boolean',
  16. description = 'Whether the experience is seated.'
  17. }
  18. },
  19. variants = {
  20. {
  21. arguments = {},
  22. returns = { 'seated' }
  23. }
  24. },
  25. related = {
  26. 'lovr.conf',
  27. 'lovr.recenter'
  28. }
  29. }