self:set_linear_damp

Client

Sets the linear damping of the rigid body


Syntax

local status = self:set_linear_damp(
    damp
)

Parameters

TypeNameDescription
floatdampLinear damping value to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the linear damp of a rigid body
local entity = physics.rigid.create()

entity:set_linear_damp(0.1)

On this page