mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Merge pull request #2514 from VitaZheltyakov/dev
Corrected intersects fuction
This commit is contained in:
commit
e4d56175ab
1 changed files with 2 additions and 0 deletions
|
@ -986,6 +986,8 @@ Phaser.Physics.Arcade.prototype = {
|
|||
*/
|
||||
intersects: function (body1, body2) {
|
||||
|
||||
if (body1 === body2) return false;
|
||||
|
||||
// Rect vs. Rect
|
||||
if (body1.right <= body2.position.x)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue