self:set_roll_influence
Client
Sets the roll influence of the wheel, controlling how much it affects vehicle body roll
Syntax
local status = self:set_roll_influence(
influence
)Parameters
| Type | Name | Description |
|---|---|---|
float | influence | Roll influence 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_roll_influence(0.1)