mirror of
https://github.com/wassname/phaser.git
synced 2026-07-01 16:50:43 +08:00
Don’t test self-collisions
This commit is contained in:
@@ -750,9 +750,12 @@ Phaser.Physics.Arcade.prototype = {
|
||||
* @returns {boolean} Returns true if the bodies were separated, otherwise false.
|
||||
*/
|
||||
separate: function (body1, body2) {
|
||||
|
||||
this._result = (this.separateX(body1, body2) || this.separateY(body1, body2));
|
||||
|
||||
if(body1 !== body2)
|
||||
{
|
||||
this._result = (this.separateX(body1, body2) || this.separateY(body1, body2));
|
||||
} else {
|
||||
this._result = false;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user