World:isCollisionEnabledBetween

Returns whether collisions are currently enabled between two tags.

enabled = World:isCollisionEnabledBetween(tag1, tag2)

Arguments

NameTypeDescription
tag1string The first tag.
tag2string The second tag.

Returns

NameTypeDescription
enabledboolean Whether 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