self:remove_collision_exception_with

Client

Removes a previously added collision exception from the static body, restoring collision between the two bodies


Syntax

local status = self:remove_collision_exception_with(
    body
)

Parameters

TypeNameDescription
objectbodyPhysics body instance to remove from the exception list — must be the same physics type as this instance

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Remove a collision exception on a static body
local a = physics.static.create()
local b = physics.static.create()

a:add_collision_exception_with(b)
a:remove_collision_exception_with(b)

On this page