Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The GO Polygon is missing a method for adding points #6151

Closed
PhaserEditor2D opened this issue Jun 21, 2022 · 2 comments
Closed

The GO Polygon is missing a method for adding points #6151

PhaserEditor2D opened this issue Jun 21, 2022 · 2 comments

Comments

@PhaserEditor2D
Copy link
Contributor

Hi!

The Phaser.GameObjects.Polygon shape is missing a method for changing the points. It only allows setting the points in the constructor.

I think it could provide a method like the Triangle.setTo(...), for changing the underlying polygon's geom.

I can try implementing it the same way is implemented in the Triangle.

@photonstorm
Copy link
Collaborator

Ok, give the 3.60 version a go and see if it works out for you please.

@PhaserEditor2D
Copy link
Contributor Author

Yes, it works! Thanks Richard!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants