self:is_used_as_steering

Client

Checks whether the wheel is used as a steering wheel


Syntax

local result = self:is_used_as_steering()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the condition is met, false otherwise

Examples

Check steering on a vehicle wheel
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)

core.engine.print("info", "Vehicle wheel used as steering:", entity:is_used_as_steering())

On this page