getBoundsDimensions.lua 604 B

123456789101112131415161718192021222324252627
  1. return {
  2. tag = 'playArea',
  3. summary = 'Get the size of the play area.',
  4. description = 'Returns the size of the play area, in meters.',
  5. arguments = {},
  6. returns = {
  7. width = {
  8. type = 'number',
  9. description = 'The width of the play area, in meters.'
  10. },
  11. depth = {
  12. type = 'number',
  13. description = 'The depth of the play area, in meters.'
  14. }
  15. },
  16. variants = {
  17. {
  18. arguments = {},
  19. returns = { 'width', 'depth' }
  20. }
  21. },
  22. related = {
  23. 'lovr.headset.getBoundsWidth',
  24. 'lovr.headset.getBoundsDepth',
  25. 'lovr.headset.getBoundsGeometry'
  26. }
  27. }