module/world: fix an oops

This commit is contained in:
Kazhnuz 2019-05-05 19:36:21 +02:00
parent e4b39a318e
commit 146cfbed54

View file

@ -134,7 +134,7 @@ end
function Actor2D:solveAllCollisions(cols)
for i, col in ipairs(cols) do
self:collisionResponse(v)
self:collisionResponse(col)
if (col.type == "touch") or (col.type == "bounce") or (col.type == "slide") then
self:changeSpeedToCollisionNormal(col.normal.x, col.normal.y)
end