We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 666df67 commit b48669dCopy full SHA for b48669d
1 file changed
src/physics/arcade/ArcadePhysics.js
@@ -750,9 +750,12 @@ Phaser.Physics.Arcade.prototype = {
750
* @returns {boolean} Returns true if the bodies were separated, otherwise false.
751
*/
752
separate: function (body1, body2) {
753
-
754
- this._result = (this.separateX(body1, body2) || this.separateY(body1, body2));
755
+ if(body1 !== body2)
+ {
+ this._result = (this.separateX(body1, body2) || this.separateY(body1, body2));
756
+ } else {
757
+ this._result = false;
758
+ }
759
},
760
761
/**
0 commit comments