self:set_contact_monitor
Client
Sets whether contact monitoring is enabled on the rigid body
Syntax
local status = self:set_contact_monitor(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | true to enable contact monitoring, false to disable |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:set_contact_monitor(true)