self:set_steering

Client

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

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_steering(0.3)

On this page