Lint collision-detection.lua
This commit is contained in:
parent
e242ab8b30
commit
7a3528df40
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue