self:get_linear_damp

Client

Retrieves the linear damping of the vehicle 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 vehicle body
local entity = physics.vehicle.create()

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

On this page