self:set_suspension_rest_length

Client

Sets the suspension's resting length of the wheel


Syntax

local status = self:set_suspension_rest_length(
    length
)

Parameters

TypeNameDescription
floatlengthSuspension rest length to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_suspension_rest_length(0.3)

On this page