Vehicle Wheel

self:set_steering

Shared

Sets the per-wheel steering angle override

Syntax

local status = self:set_steering(
    steering
)

Parameters

TypeNameDescription
floatsteeringPer-wheel steering angle override to apply in degrees

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(15)

On this page