Collider:setTag

Edit

Sets the Collider's tag.

Collider:setTag(tag)

Arguments

NameTypeDescription
tagstring The Collider's collision tag.

Returns

Nothing

Notes

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

See also