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 +});