project(point3, out = new Point()) {
out.x = (point3.x - point3.y) * this._transform[0];
out.y = ((point3.x + point3.y) * this._transform[1]) - point3.z;
const { width, height } = this.scene.sys.game.config;
out.x += width * this.origin.x;
out.y += height * this.origin.y;
return out;
}
this code returns NaN for 'x' and 'y', because of my game config
const config = {
type: Phaser.AUTO,
scale: {
mode: Phaser.Scale.RESIZE,
width: '100vw',
height: '100vh',
autoCenter: Phaser.Scale.CENTER_BOTH
},
...
}
May better solution to use const { width, height } = this.sys.game.canvas ?