self:get_damping_compression

Client

Retrieves the suspension compression damping of the wheel


Syntax

local value = self:get_damping_compression()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent compression damping

Examples

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

core.engine.print("info", "Vehicle wheel damping compression:", entity:get_damping_compression())

On this page