setAngularDamping.lua 763 B

123456789101112131415161718192021222324252627
  1. return {
  2. summary = 'Set the angular damping of the Collider.',
  3. description = [[
  4. Sets the angular damping of the Collider. Angular damping makes things less "spinny", causing
  5. them to slow down their angular velocity over time. Damping is only applied when angular
  6. velocity is over the threshold value.
  7. ]],
  8. arguments = {
  9. {
  10. name = 'damping',
  11. type = 'number',
  12. description = 'The angular damping.'
  13. },
  14. {
  15. name = 'threshold',
  16. type = 'number',
  17. default = '0',
  18. description = 'Velocity limit below which the damping is not applied.'
  19. }
  20. },
  21. returns = {},
  22. notes = 'Angular damping can also be set on the World.',
  23. related = {
  24. 'World:getAngularDamping',
  25. 'World:setAngularDamping'
  26. }
  27. }