mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
Return a value from Phaser.Physics.Arcade.intersects.
This commit is contained in:
@@ -817,7 +817,7 @@ Phaser.Physics.Arcade.prototype = {
|
||||
|
||||
if (a.width <= 0 || a.height <= 0 || b.width <= 0 || b.height <= 0)
|
||||
{
|
||||
result = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
result = !(a.right < b.left || a.bottom < b.top || a.left > b.right || a.top > b.bottom);
|
||||
@@ -827,6 +827,7 @@ Phaser.Physics.Arcade.prototype = {
|
||||
a.removeContact(b);
|
||||
}
|
||||
|
||||
return result;
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user