self:set_linear_damp
Client
Sets the linear damping of the rigid body
Syntax
local status = self:set_linear_damp(
damp
)Parameters
| Type | Name | Description |
|---|---|---|
float | damp | Linear damping value to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:set_linear_damp(0.1)