| 123456789101112131415161718192021222324252627282930 |
- return {
- summary = 'Get the linear damping of the Collider.',
- description = [[
- Returns the Collider's linear damping parameters. Linear damping is similar to drag or air
- resistance, slowing the Collider down over time.
- ]],
- arguments = {},
- returns = {
- {
- name = 'damping',
- type = 'number',
- description = 'The linear damping.'
- },
- {
- name = 'threshold',
- type = 'number',
- description = 'Velocity limit below which the damping is not applied.'
- }
- },
- notes = [[
- A linear damping of 0 means the Collider won't slow down over time. This is the default.
- Linear damping can also be set on the World using `World:setLinearDamping`, which will affect
- all new colliders.
- ]],
- related = {
- 'World:getLinearDamping',
- 'World:setLinearDamping'
- }
- }
|