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

TypeNameDescription
floatvalueCurrent linear damping

Examples

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

core.engine.print("info", "Rigid body linear damp:", entity:get_linear_damp())

On this page