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

TypeNameDescription
boolresulttrue if the condition is met, false otherwise

Examples

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

core.engine.print("info", "Vehicle wheel in contact:", entity:is_in_contact())

On this page