Collider:setTag

Sets the Collider's tag.

Collider:setTag(tag)

Arguments

NameTypeDescription
tagstringThe Collider's collision tag.

Returns

Nothing

Notes

Collision between tags can be enabled and disabled using World:enableCollisionBetween and World:disableCollisionBetween.

See also