Skip to content

GetLineToPolygon doesn't work as expected #6467

@Abspirit

Description

@Abspirit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions