World:enableCollisionBetween

Edit

Enables collision between two tags. Use Collider:setTag to set a Collider's tag.

World:enableCollisionBetween(tag1, tag2)

Arguments

NameTypeDescription
tag1string The first tag.
tag2string The second tag.

Returns

Nothing

Notes

By default, collision is enabled between all tags.

Tags can be marked as "static" when the world is created, as an optimization hint. Static tags will never collide with other static tags, regardless of whether collision is enabled between them.

See also