self:set_damping_relaxation

Client

Sets the suspension relaxation damping of the wheel


Syntax

local status = self:set_damping_relaxation(
    damping
)

Parameters

TypeNameDescription
floatdampingRelaxation damping to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_damping_relaxation(0.88)

On this page