Lint collision-detection.lua

This commit is contained in:
Sage Vaillancourt 2025-03-19 15:49:04 -04:00
parent e242ab8b30
commit 7a3528df40
1 changed files with 6 additions and 1 deletions

View File

@ -34,7 +34,12 @@ world:filteredSystem(
and bit.band(collider.canCollideWith, e.canBeCollidedBy) ~= 0
then
if intersects(e, collider) then
system.world:addEntity({ collisionBetween = { collider = collider, collidedInto = e } })
system.world:addEntity({
collisionBetween = {
collider = collider,
collidedInto = e
}
})
end
end
end