self:get_max_contacts_reported

Client

Retrieves the maximum number of contacts tracked by the rigid body when contact monitoring is enabled


Syntax

local amount = self:get_max_contacts_reported()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intamountMaximum contacts reported

Examples

Get max contacts reported on a rigid body
local entity = physics.rigid.create()

core.engine.print("info", "Rigid body max contacts reported:", entity:get_max_contacts_reported())

On this page