self:remove_collision_exception_with

Client

Removes a previously added collision exception from the vehicle 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 vehicle body
local a = physics.vehicle.create()
local b = physics.vehicle.create()

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

On this page