self:get_damping_relaxation

Client

Retrieves the suspension relaxation damping of the wheel


Syntax

local value = self:get_damping_relaxation()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent relaxation damping

Examples

Get the relaxation damping of a vehicle wheel
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)

core.engine.print("info", "Vehicle wheel damping relaxation:", entity:get_damping_relaxation())

On this page