self:get_suspension_stiffness

Client

Retrieves the suspension stiffness of the wheel


Syntax

local value = self:get_suspension_stiffness()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent suspension stiffness

Examples

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

core.engine.print("info", "Vehicle wheel suspension stiffness:", entity:get_suspension_stiffness())

On this page