Luca Pivotto

Results 14 comments of Luca Pivotto

ok i've found a solution, in the game update game.iso.unproject({ x: game.input.activePointer.position.x / game.camera.scale.x, y: game.input.activePointer.position.y / game.camera.scale.y }, game.cursorPos); do you think that unproject should support camera scale?

Same thing happen when change camera x/y.

this is the fix that i've found: in update function `this.game.iso.unproject({ x: (this.game.input.activePointer.position.x + this.game.camera.x) / this.game.camera.scale.x, y: (this.game.input.activePointer.position.y + this.game.camera.y) / this.game.camera.scale.y }, this.game.cursorPos);` unproject function `var x =...

@ivanpkpelyshev what is the condition that i should use in order to detect which face is visible?

xAxis should be containerSprite.proj.matrix.mat3[0,1,2] y axis containerSprite.proj.matrix.mat3[3,4,5] right? i have tried this but doesnt seems to be correct var a = containerSprite.proj.matrix.mat3 Math.sign((a[1]-a[0])*(a[5]-a[3]))-((a[4]-a[3])*(a[2]-a[0]));

like that? Math.sign(a[0] * a[4] - a[1] * a[3]) * Math.sign(a[2]) * Math.sign(a[5])

nope try this examply and play with the red squares ``` var app = new PIXI.Application(800, 600, {backgroundColor: 0x1099bb}); document.body.appendChild(app.view); var w = app.screen.width/2, h = app.screen.height/2; function createSquare(x, y)...

Hi @ivanpopelyshev any news about this?