mirror of
https://github.com/wassname/phaser-plugin-isometric.git
synced 2026-09-09 11:28:50 +08:00
Added new dist files!
This commit is contained in:
Vendored
+4
-1
@@ -1831,7 +1831,7 @@ Phaser.Plugin.Isometric.Projector.prototype = {
|
||||
* @method Phaser.Plugin.Isometric.Projector#unproject
|
||||
* @param {Phaser.Plugin.Isometric.Point} point - The Point to project from.
|
||||
* @param {Phaser.Point3} out - The Point3 to project to.
|
||||
* @param {number} z - Specified z-plane to project to.
|
||||
* @param {number} [z] - Specified z-plane to project to.
|
||||
* @return {Phaser.Point3} The transformed Point3.
|
||||
*/
|
||||
unproject: function (point, out, z) {
|
||||
@@ -1839,6 +1839,9 @@ Phaser.Plugin.Isometric.Projector.prototype = {
|
||||
out = new Phaser.Point3();
|
||||
}
|
||||
|
||||
z = z || 0;
|
||||
|
||||
|
||||
var x = point.x - (this.game.world.width * this.anchor.x);
|
||||
var y = point.y - (this.game.world.height * this.anchor.y) + z;
|
||||
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user