Collider:getTag

Returns the Collider's tag.

tag = Collider:getTag()

Arguments

None

Returns

NameTypeDescription
tagstringThe Collider's collision tag.

Notes

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

See also