It would pretty much be the same thing. Give the player an interface to plot points, then create a mesh using those points once there’s 3 or more. Create a polygon collider for that mesh using the same points.
I’d like to share with you my plugin to create 2D Primitives.
You can create these primitives
Circle
Star
Rounded square
Arrow
Spiral
N-Sides Polygon
Gradient Quad
4 Corner Gradient Quad
All primitives types are inherited from default Graphic class so it’s behave as any canvas element.
The main pros to use those primitives are:
They are resolution independent;
Fully animable;
Lightweight;
Fully configurable;
Source code included;
You can use the shapes included in the pack (as a static class Shape2DHelper) for many implementations: spawn objects, emit particles, draw, animation etc.
Fast and easy to prototype or create UI / UX;
To next version I’m adding support to create 2D Sprite Primitives as well.
Here is the link to the plugin on Asset Store 2D Primitives