self:set_friction_slip
Client
Sets the tire friction slip value of the wheel, controlling grip
Syntax
local status = self:set_friction_slip(
slip
)Parameters
| Type | Name | Description |
|---|---|---|
float | slip | Friction slip value to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)
entity:set_friction_slip(10.5)