self:get_friction_slip

Client

Retrieves the tire friction slip value of the wheel, controlling grip


Syntax

local value = self:get_friction_slip()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent friction slip

Examples

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

core.engine.print("info", "Vehicle wheel friction slip:", entity:get_friction_slip())

On this page