self:get_linear_damp
Client
Retrieves the linear damping of the rigid body
Syntax
local value = self:get_linear_damp()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | value | Current linear damping |
Examples
local entity = physics.rigid.create()
core.engine.print("info", "Rigid body linear damp:", entity:get_linear_damp())