mirror of
https://github.com/wassname/phaser-plugin-isometric.git
synced 2026-09-09 11:28:50 +08:00
sets z when unprojecting with a new point
This commit is contained in:
+2
-1
@@ -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)];
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user