self:get_suspension_max_force

Client

Retrieves the maximum force the suspension can exert on the wheel


Syntax

local value = self:get_suspension_max_force()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent suspension max force

Examples

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

core.engine.print("info", "Vehicle wheel suspension max force:", entity:get_suspension_max_force())

On this page