From e9c72140dcf273fbad95885f1c36883517c44702 Mon Sep 17 00:00:00 2001 From: M Clark Date: Sat, 21 Nov 2015 08:22:07 +0800 Subject: [PATCH] Fixed typo --- src/physics/World.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physics/World.js b/src/physics/World.js index 06b9cf7..518587a 100644 --- a/src/physics/World.js +++ b/src/physics/World.js @@ -1018,7 +1018,7 @@ Phaser.Plugin.Isometric.Arcade.prototype = { this._dx = displayObject.x - x; this._dy = displayObject.y - y; - this._dz = displayObject.y - z; + this._dz = displayObject.z - z; return Math.sqrt(this._dx * this._dx + this._dy * this._dy + this._dz * this._dz);