Hi, I’m trying to make the player bounce inside a hand drawn circle-shape that has space in the middle, does anyone know how to add collider to a handdrawn shape? thanks
I want the player (green ball) to bounce inside the brown circle, but I can’t figure out which/how the collider works for handdrawn shapes
You should be able to use a PolygonCollider2D as you mentioned but I would select the Delaunay option on it.
Also note that in later versions of Unity you can use a CompositeCollider2D to perform operations such as carving out areas. You can create the above ring with two CircleCollider2D with the larger one being the outer radius and the smaller one being the inner radius subtracting from it. This can give you a lot more control over the end result and won’t have any extra runtime overhead if you’re not changing it at runtime.