getAngularVelocity.lua 747 B

1234567891011121314151617181920212223242526272829303132
  1. return {
  2. summary = 'Get the angular velocity of the Collider.',
  3. description = 'Returns the angular velocity of the Collider.',
  4. arguments = {},
  5. returns = {
  6. vx = {
  7. type = 'number',
  8. description = 'The x component of the angular velocity.'
  9. },
  10. vy = {
  11. type = 'number',
  12. description = 'The y component of the angular velocity.'
  13. },
  14. vz = {
  15. type = 'number',
  16. description = 'The z component of the angular velocity.'
  17. }
  18. },
  19. variants = {
  20. {
  21. arguments = {},
  22. returns = { 'vx', 'vy', 'vz' }
  23. }
  24. },
  25. related = {
  26. 'Collider:getLinearVelocity',
  27. 'Collider:setLinearVelocity',
  28. 'Collider:applyTorque',
  29. 'Collider:getOrientation',
  30. 'Collider:setOrientation'
  31. }
  32. }