Contact:setEnabled

Edit

Enables or disables the Contact. Disabled contacts do not generate any collision response.

Contact:setEnabled(enable)

Arguments

NameTypeDescription
enableboolean Whether the Contact should be enabled.

Returns

Nothing

Notes

Note that this is the slowest way to ignore a collision. Faster ways to disable collisions (in increasing order of speed) are:

See also