self:get_roll_influence

Client

Retrieves the roll influence of the wheel, controlling how much it affects vehicle body roll


Syntax

local value = self:get_roll_influence()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent roll influence

Examples

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

core.engine.print("info", "Vehicle wheel roll influence:", entity:get_roll_influence())

On this page