module/world: fix an oops
This commit is contained in:
parent
e4b39a318e
commit
146cfbed54
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ end
|
||||||
|
|
||||||
function Actor2D:solveAllCollisions(cols)
|
function Actor2D:solveAllCollisions(cols)
|
||||||
for i, col in ipairs(cols) do
|
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
|
if (col.type == "touch") or (col.type == "bounce") or (col.type == "slide") then
|
||||||
self:changeSpeedToCollisionNormal(col.normal.x, col.normal.y)
|
self:changeSpeedToCollisionNormal(col.normal.x, col.normal.y)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue