self:set_max_contacts_reported

Client

Sets the maximum number of contacts tracked by the rigid body


Syntax

local status = self:set_max_contacts_reported(
    amount
)

Parameters

TypeNameDescription
intamountMaximum number of contacts to track

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_max_contacts_reported(4)

On this page