You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > isFirstContact

19.11.9 isFirstContact

bool = physics.Arbiter:isFirstContact()

Parameter

Type

Description

self

in physics.Arbiter

The input Arbiter

bool

out boolean

True if this is the first step that the Shapes touched

Returns true if this is the first step that the Shapes touched. This information only persists until a step when the shapes are no longer touching. Once they are no longer touching, this flag is reset.

Introduced in platform.apiLevel = '2.0'