self:is_used_as_traction
Client
Checks whether the wheel is used as a traction (driven) wheel
Syntax
local result = self:is_used_as_traction()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 traction:", entity:is_used_as_traction())