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
| Type | Name | Description |
|---|---|---|
float | value | Current friction slip |
Examples
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)
core.engine.print("info", "Vehicle wheel friction slip:", entity:get_friction_slip())