Skip to content

Commit fcd7f25

Browse files
committed
Preparing to swap for isBlocked checks
1 parent 68c8bd3 commit fcd7f25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/physics/arcade/SeparateY.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ var SeparateY = function (body1, body2, overlapOnly, bias)
7070
// At this point, the velocity from gravity, world rebounds, etc has been factored in.
7171
// The body is moving the direction it wants to, but may be blocked and rebound.
7272

73-
var move1 = (!body1Immovable && (v1 >= 0 && !worldBlocked1.down) || (v1 < 0 && !worldBlocked1.up));
74-
var move2 = (!body2Immovable && (v2 >= 0 && !worldBlocked2.down) || (v2 < 0 && !worldBlocked2.up));
73+
var move1 = (!body1Immovable && (v1 >= 0 && !body1.isBlockedDown()) || (v1 < 0 && !body1.isBlockedUp()));
74+
var move2 = (!body2Immovable && (v2 >= 0 && !body2.isBlockedDown()) || (v2 < 0 && !body2.isBlockedUp()));
7575

7676
if (move1 && move2)
7777
{

0 commit comments

Comments
 (0)