This commit is contained in:
Sage Vaillancourt 2025-03-21 12:20:25 -04:00
parent 3af687b28d
commit 69bf5b60aa
1 changed files with 5 additions and 4 deletions

View File

@ -33,10 +33,11 @@ world:filteredSystem(
and collider.canCollideWith
and e.canBeCollidedBy
and band(collider.canCollideWith, e.canBeCollidedBy) ~= 0
and intersects(e, collider) then
system.world:addEntity({
collisionBetween = { collider = collider, collidedInto = e },
})
and intersects(e, collider)
then
system.world:addEntity({
collisionBetween = { collider = collider, collidedInto = e },
})
end
end
end