Skip to content

Commit e4d5617

Browse files
committed
Merge pull request phaserjs#2514 from VitaZheltyakov/dev
Corrected intersects fuction
2 parents 752e3ea + cd3742f commit e4d5617

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/physics/arcade/World.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,8 @@ Phaser.Physics.Arcade.prototype = {
986986
*/
987987
intersects: function (body1, body2) {
988988

989+
if (body1 === body2) return false;
990+
989991
// Rect vs. Rect
990992
if (body1.right <= body2.position.x)
991993
{

0 commit comments

Comments
 (0)