self:get_steering

Client

Retrieves the whole-chassis steering angle of the vehicle body


Syntax

local value = self:get_steering()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent steering value

Examples

Get the steering of a vehicle body
local entity = physics.vehicle.create()

core.engine.print("info", "Vehicle body steering:", entity:get_steering())

On this page