So i cant seem to find the answer anywhere. I have basically a tilemap of pixel that are destructible(like in terraria) but i don’t use the native unity tilemap, i made my own system. My biggest problem is that i cant seem to add colliders to it. I want it to work with rigidbodies. I just need each chunk to generate a simple collision, it can just be a outline(doesn’t have to be pixel perfect).
PolygonCollider2D is too big/chunky.
Any help or ideas are appreciated.
Chunk.cs (2.8 KB)
TerrainManager.cs (15.8 KB)