self:set_steering

Client

Sets the per-wheel steering angle override


Syntax

local status = self:set_steering(
    steering
)

Parameters

TypeNameDescription
floatsteeringPer-wheel steering angle override to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_steering(0.3)

On this page