setFriction.lua 509 B

1234567891011121314151617181920
  1. return {
  2. summary = 'Set the friction of the Collider.',
  3. description = [[
  4. Sets the friction of the Collider. By default, the friction of two Colliders is combined
  5. (multiplied) when they collide to generate a friction force. The initial friction is 0.
  6. ]],
  7. arguments = {
  8. {
  9. name = 'friction',
  10. type = 'number',
  11. description = 'The new friction.'
  12. }
  13. },
  14. returns = {},
  15. related = {
  16. 'Collider:getRestitution',
  17. 'Collider:setRestitution',
  18. 'World:collide'
  19. }
  20. }