mjablonski Posted October 27, 2013 Share Posted October 27, 2013 Hi, 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 More sharing options...
rich Posted October 27, 2013 Share Posted October 27, 2013 Yes, GitHub issue it please Link to comment Share on other sites More sharing options...
mjablonski Posted October 27, 2013 Author Share Posted October 27, 2013 Done: https://github.com/photonstorm/phaser/issues/136 Thanks, Maik Link to comment Share on other sites More sharing options...
Recommended Posts