Hello,
I don't know if it's a mistake from my side or not, but it seems that Phaser.Geom.Intersects.GetLineToPolygon does not work with the last vertice (the one which is not closed) of the polygon.
Here's an example
https://codepen.io/Abspirit/pen/PoyPNOK
the green dot is not supposed to be here or I did not get what it's supposed to do ?
And I also don't get why when I use the other "line4" (quoted in the example) it does not work.
(because X1 = X2 ?). I'm lost.
Thanks for your answer
Hello,
I don't know if it's a mistake from my side or not, but it seems that Phaser.Geom.Intersects.GetLineToPolygon does not work with the last vertice (the one which is not closed) of the polygon.
Here's an example
https://codepen.io/Abspirit/pen/PoyPNOK
the green dot is not supposed to be here or I did not get what it's supposed to do ?
And I also don't get why when I use the other "line4" (quoted in the example) it does not work.
(because X1 = X2 ?). I'm lost.
Thanks for your answer