Sensor:enable_activation_by_everything

Allows this sensor to be activated by colliders or sensors of any category.

Usage

sensor:enable_activation_by_everything()

Examples

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

local pressure_plate = ecs:spawn(crystal.Entity);
pressure_plate:add_component(crystal.Body);
pressure_plate:add_component(crystal.Sensor, love.physics.newCircleShape(4));
pressure_plate:set_categories("triggers");
pressure_plate:enable_activation_by_everything();

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