Contact:setEnabled
EditEnables or disables the Contact. Disabled contacts do not generate any collision response.
Contact:setEnabled(enable)
Arguments
Name | Type | Description |
enable | boolean | 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:
- The
filter
callback inWorld:setCallbacks
- Disabling collision between tags with
World:disableCollisionBetween
- Removing the collider from the World completely with
Collider:setEnabled