self:set_contact_monitor

Client

Sets whether contact monitoring is enabled on the rigid body


Syntax

local status = self:set_contact_monitor(
    state
)

Parameters

TypeNameDescription
boolstatetrue to enable contact monitoring, false to disable

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Enable contact monitoring on a rigid body
local entity = physics.rigid.create()

entity:set_contact_monitor(true)

On this page