mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Fix ArcadePhysics#closest, furthest
This commit is contained in:
parent
0ed4766fe3
commit
7ebc7dd01f
1 changed files with 2 additions and 2 deletions
|
@ -300,7 +300,7 @@ var ArcadePhysics = new Class({
|
|||
*/
|
||||
closest: function (source)
|
||||
{
|
||||
var bodies = this.tree.all();
|
||||
var bodies = this.world.tree.all();
|
||||
|
||||
var min = Number.MAX_VALUE;
|
||||
var closest = null;
|
||||
|
@ -334,7 +334,7 @@ var ArcadePhysics = new Class({
|
|||
*/
|
||||
furthest: function (source)
|
||||
{
|
||||
var bodies = this.tree.all();
|
||||
var bodies = this.world.tree.all();
|
||||
|
||||
var max = -1;
|
||||
var farthest = null;
|
||||
|
|
Loading…
Reference in a new issue