From de72cfc0f8cd7f125cf21b456c71564d901081be Mon Sep 17 00:00:00 2001 From: Is Isilon Date: Sun, 29 Nov 2015 15:12:17 +0800 Subject: [PATCH] sets z when unprojecting with a new point --- src/Projector.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Projector.js b/src/Projector.js index 6ce4c4b..971b263 100644 --- a/src/Projector.js +++ b/src/Projector.js @@ -113,6 +113,7 @@ Phaser.Plugin.Isometric.Projector.prototype = { out.x = x / (2 * this._transform[0]) + y / (2 * this._transform[1]); out.y = -(x / (2 * this._transform[0])) + y / (2 * this._transform[1]); + out.z = z; return out; }, @@ -232,4 +233,4 @@ Object.defineProperty(Phaser.Plugin.Isometric.Projector.prototype, "projectionAn this._transform = [Math.cos(this._projectionAngle), Math.sin(this._projectionAngle)]; } -}); \ No newline at end of file +});