Collider:getTag

Edit

Returns 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

NameTypeDescription
tagstring The Collider's tag.

See also