Collider:getTag
EditReturns the Collider's tag.
Tags are strings that represent the category of a collider. Use World:enableCollisionBetween
and World:disableCollisionBetween
to control which pairs of tags should collide with each other. Physics queries like World:raycast
also use tags to filter their results.
The list of available tags is set in lovr.physics.newWorld
.
tag = Collider:getTag()
Arguments
None
Returns
Name | Type | Description |
tag | string | The Collider's tag. |