phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
36.94k stars 7.08k forks source link

Bug in Phaser.Physics.Arcade#distanceToPointer #136

Closed jablonski closed 10 years ago

jablonski commented 10 years ago
distanceToPointer: function (displayObject, pointer) {
...
        this._dx = displayObject.worldX - pointer.x;
        this._dy = displayObject.worldY - pointer.y;       
...
    },

.worldX / .worldY needs to be replaced with .x and .y.

photonstorm commented 10 years ago

Fixed in 1.1.2