setAngularVelocity.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. return {
  2. summary = 'Set the angular velocity of the Collider.',
  3. description = 'Sets the angular velocity of the Collider.',
  4. arguments = {
  5. vx = {
  6. type = 'number',
  7. description = 'The x component of the angular velocity.'
  8. },
  9. vy = {
  10. type = 'number',
  11. description = 'The y component of the angular velocity.'
  12. },
  13. vz = {
  14. type = 'number',
  15. description = 'The z component of the angular velocity.'
  16. },
  17. velocity = {
  18. type = 'Vec3',
  19. description = 'The angular velocity of the Collider.'
  20. }
  21. },
  22. returns = {},
  23. variants = {
  24. {
  25. description = 'Sets the angular velocity of the Collider using numbers.',
  26. arguments = { 'vx', 'vy', 'vz' },
  27. returns = {}
  28. },
  29. {
  30. description = 'Sets the angular velocity of the Collider using a vector.',
  31. arguments = { 'velocity' },
  32. returns = {}
  33. }
  34. },
  35. notes = 'If the Collider is asleep, calling this function will wake it up.',
  36. related = {
  37. 'Collider:getLinearVelocity',
  38. 'Collider:setLinearVelocity',
  39. 'Collider:applyTorque',
  40. 'Collider:getOrientation',
  41. 'Collider:setOrientation'
  42. }
  43. }