self:is_in_contact
Client
Checks whether the wheel is currently in contact with the ground
Syntax
local result = self:is_in_contact()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 in contact:", entity:is_in_contact())