How would you implement this?


In my game, the player flies a little spaceship through the gaps in the ring in the center of the screen, which are constantly growing from the center ( kind of like starfox ) . The rings also spin around concentrically.

I’m currently using phaser3 GRAPHICS.ARC to draw, but I’m not sure how to handle collision.
Is there someway to get all the points of an arc, to make a polygon in matterJS?
Or can I somehow detect in a primitive way just that the user passed through the opening in the ring instead?
Maybe i could write my own simple scaling circle polygon maker, it doesn’t have to be 100% accurate.

What do you think? Is there a built in way to detect “ring-like” collision, or should i write my own thing?

It should help you