Create 2D polygon from points

Hi all,

I’m trying to create a 2D polygon from points the player has been to.

So, should the player run around in a rough circle for example, the game should detect this and connect the points to make a polygon.

Any enemies inside that polygon will then be destroyed, though I think I can handle that part on my own. It’s just creating a polygon from points in the game that I’m having trouble with.

A general design question like this one should be asked on Unity Forums. You might take a look at the Triangulator in the Unity Wiki: