Vehicle Body

self:set_steering

Shared

Sets the whole-chassis steering angle of the vehicle body

Syntax

local status = self:set_steering(
    steering
)

Parameters

TypeNameDescription
floatsteeringSteering angle to apply across the whole chassis in degrees

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Steer a vehicle body
local entity = physics.vehicle.create()

entity:set_steering(15)

On this page