Skip to content

Commit 956f880

Browse files
committed
Set overlapR in separateCircle()
1 parent 0d23aea commit 956f880

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/physics/arcade/World.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,9 @@ var World = new Class({
15181518
overlap = (body1.halfWidth + body2.halfWidth) - DistanceBetween(body1.center.x, body1.center.y, body2.center.x, body2.center.y);
15191519
}
15201520

1521+
body1.overlapR = overlap;
1522+
body2.overlapR = overlap;
1523+
15211524
// Can't separate two immovable bodies, or a body with its own custom separation logic
15221525
if (overlapOnly || overlap === 0 || (body1.immovable && body2.immovable) || body1.customSeparateX || body2.customSeparateX)
15231526
{

0 commit comments

Comments
 (0)