getAngularVelocity.lua 834 B

1234567891011121314151617181920212223242526272829303132333435
  1. return {
  2. tag = 'input',
  3. summary = 'Get the angular velocity of a device.',
  4. description = 'Returns the current angular velocity of a device.',
  5. arguments = {
  6. {
  7. name = 'device',
  8. type = 'Device',
  9. default = [['head']],
  10. description = 'The device to get the velocity of.'
  11. }
  12. },
  13. returns = {
  14. {
  15. name = 'x',
  16. type = 'number',
  17. description = 'The x component of the angular velocity.'
  18. },
  19. {
  20. name = 'y',
  21. type = 'number',
  22. description = 'The y component of the angular velocity.'
  23. },
  24. {
  25. name = 'z',
  26. type = 'number',
  27. description = 'The z component of the angular velocity.'
  28. }
  29. },
  30. related = {
  31. 'lovr.headset.getVelocity',
  32. 'lovr.headset.getPosition',
  33. 'lovr.headset.getOrientation'
  34. }
  35. }