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
| Type | Name | Description |
|---|---|---|
object | body | Physics body instance to remove from the exception list — must be the same physics type as this instance |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local a = physics.static.create()
local b = physics.static.create()
a:add_collision_exception_with(b)
a:remove_collision_exception_with(b)