World:isCollisionEnabledBetween

Returns whether collisions are currently enabled between two tags.

enabled = World:isCollisionEnabledBetween(tag1, tag2)

Arguments

NameTypeDescription
tag1stringThe first tag.
tag2stringThe second tag.

Returns

NameTypeDescription
enabledbooleanWhether or not two colliders with the specified tags will collide.

Notes

Tags must be set up when creating the World, see lovr.physics.newWorld.

By default, collision is enabled between all tags.

See also