Fixed a conditional bug in Arcade Physics ProcessX when Body2 is Immovable and Body1 is not

This commit is contained in:
Richard Davey 2021-02-25 14:40:34 +00:00
parent a3bcf4beb1
commit d22e3567c7

View file

@ -379,7 +379,7 @@ var RunImmovableBody2 = function (blockedState)
// Separation happened in the block check
body1.velocity.x = 0;
}
if (body2OnLeft)
else if (body2OnLeft)
{
body1.processX(overlap, body1FullImpact, true);
}