self:get_suspension_rest_length

Client

Retrieves the suspension's resting length of the wheel


Syntax

local value = self:get_suspension_rest_length()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent suspension rest length

Examples

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

core.engine.print("info", "Vehicle wheel suspension rest length:", entity:get_suspension_rest_length())

On this page