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
| Type | Name | Description |
|---|---|---|
int | amount | Maximum number of contacts to track |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:set_max_contacts_reported(4)