| 12345678910111213141516171819202122232425 |
- return {
- summary = 'Get the friction of the Collider.',
- description = [[
- Returns the friction of the Collider. By default, the friction of two Colliders is combined
- (multiplied) when they collide to generate a friction force. The initial friction is 0.
- ]],
- arguments = {},
- returns = {
- friction = {
- type = 'number',
- description = 'The friction of the Collider.'
- }
- },
- variants = {
- {
- arguments = {},
- returns = { 'friction' }
- }
- },
- related = {
- 'Collider:getRestitution',
- 'Collider:setRestitution',
- 'World:collide'
- }
- }
|