We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b45676 commit a5a56b2Copy full SHA for a5a56b2
src/physics/arcade/World.js
@@ -1660,15 +1660,15 @@ var World = new Class({
1660
// We'll only move the circle (if we can) and let
1661
// the runSeparation handle the rectangle
1662
1663
- if (!body1Immovable || body1.pushable || deadlock)
+ if (!body1Immovable && (body1.pushable || deadlock))
1664
{
1665
body1.x -= overlapX;
1666
body1.y -= overlapY;
1667
1668
body1.updateCenter();
1669
}
1670
1671
- if (!body2Immovable || body2.pushable || deadlock)
+ if (!body2Immovable && (body2.pushable || deadlock))
1672
1673
body2.x += overlapX;
1674
body2.y += overlapY;
0 commit comments