mirror of
https://github.com/wassname/phaser.git
synced 2026-10-01 12:21:02 +08:00
update the collision hulls in sprite->sprite separations (in addition to sprite->tile separations)
This commit is contained in:
1 parent
86584a636c
commit
f4688241d2
1 file changed
+4
@@ -697,6 +697,8 @@ Phaser.Physics.Arcade.prototype = {
|
||||
body2.x += this._overlap;
|
||||
body2.velocity.x = this._velocity1 - this._velocity2 * body2.bounce.x;
|
||||
}
|
||||
body1.updateHulls();
|
||||
body2.updateHulls();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -817,6 +819,8 @@ Phaser.Physics.Arcade.prototype = {
|
||||
body2.x += body1.x - body1.lastX;
|
||||
}
|
||||
}
|
||||
body1.updateHulls();
|
||||
body2.updateHulls();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user