Collider:setTag

Edit

Sets 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.



Arguments

NameTypeDescription
tagstring The Collider's tag.

Returns

Nothing

Clear the Collider's tag.

Arguments

None

Returns

Nothing

See also