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

TypeNameDescription
floatinfluenceRoll influence value to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the roll influence of a vehicle wheel
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)

entity:set_roll_influence(0.1)

On this page