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

19.11.5 depth

d = physics.Arbiter:depth(i)

Parameter

Type

Description

self

in physics.Arbiter

The input Arbiter

i

in number

A contact point number

d

out number

The penetration depth of the ith contact point

Returns the penetration depth of the ith contact or nil if i is out of range of the number of contact points.

Introduced in platform.apiLevel = '2.0'