Collider:enable_collision_with_everything

Allows this collider to collide with colliders or sensors of any category.

Usage

collider:enable_collision_with_everything()

Examples

local ecs = crystal.ECS:new();
ecs:add_system(crystal.PhysicsSystem);

local monster = ecs:spawn(crystal.Entity);
monster:add_component(crystal.Body);
monster:add_component(crystal.Collider, love.physics.newCircleShape(4));
monster:set_categories("characters");
monster:enable_collision_with_everything();

This site uses Just the Docs, a documentation theme for Jekyll.