self:get_skidinfo

Client

Retrieves the current skid amount of the wheel, where 0 is full traction loss and 1 is full traction


Syntax

local value = self:get_skidinfo()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent skid info

Examples

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

core.engine.print("info", "Vehicle wheel skid info:", entity:get_skidinfo())

On this page