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
| Type | Name | Description |
|---|---|---|
bool | result | true if the condition is met, false otherwise |
Examples
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())