sets z when unprojecting with a new point

This commit is contained in:
2015-11-29 15:12:17 +08:00
parent 257e0c424c
commit de72cfc0f8
+2 -1
View File
@@ -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)];
}
});
});