Skip to content

Commit 813e135

Browse files
committed
Pass on the hardblock state
1 parent ec67d02 commit 813e135

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/physics/arcade/CheckOverlapY.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,19 @@ var CheckOverlapY = function (body, collisionInfo)
5151
{
5252
body2.setHardBlockedDown();
5353
}
54+
else if (body2.isWorldBlockedDown())
55+
{
56+
body1.setHardBlockedDown();
57+
}
5458

5559
if (body1.isWorldBlockedUp())
5660
{
5761
body2.setHardBlockedUp();
5862
}
63+
else if (body2.isWorldBlockedUp())
64+
{
65+
body1.setHardBlockedUp();
66+
}
5967

6068
return collisionInfo.touching;
6169
};

0 commit comments

Comments
 (0)