self:set_suspension_stiffness

Client

Sets the suspension stiffness of the wheel


Syntax

local status = self:set_suspension_stiffness(
    stiffness
)

Parameters

TypeNameDescription
floatstiffnessSuspension stiffness to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_suspension_stiffness(20)

On this page