Jump to content

Bug in Phaser.Physics.Arcade#distanceToPointer?


Recommended Posts



I've just started to use 1.1.1 in my projects. For me the Phaser.Physics.Arcade#distanceToPointer seems to be wrong:


distanceToPointer: function (displayObject, pointer) {        pointer = pointer || this.game.input.activePointer;        this._dx = displayObject.worldX - pointer.x;        this._dy = displayObject.worldY - pointer.y;               return Math.sqrt(this._dx * this._dx + this._dy * this._dy);    },

IMHO .worldX and .worldY should be replaced with .x and .y, right?


Cheers, Maik


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...