Skip to content

Commit 1fc476d

Browse files
committed
Wake-up sleeping bodies on impact
1 parent 9500fbc commit 1fc476d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/physics/arcade/SeparateY.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ var SeparateY = function (body1, body2, overlapOnly, bias)
126126

127127
body1.y += amount1;
128128
body2.y += amount2;
129+
130+
if (amount1)
131+
{
132+
body1.wake();
133+
}
134+
135+
if (amount2)
136+
{
137+
body2.wake();
138+
}
129139
}
130140

131141
if (body1BlockedY || body2BlockedY)

0 commit comments

Comments
 (0)