self:set_damping_compression

Client

Sets the suspension compression damping of the wheel


Syntax

local status = self:set_damping_compression(
    damping
)

Parameters

TypeNameDescription
floatdampingCompression damping to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_damping_compression(0.83)

On this page