Drill-like system

Do you guys have any idea how this work? (Image Above)

What logic is should use for this system?

Is there any similar system like this?

I don’t know what keyword i need to search for this.

I appreciate your help tq :slight_smile:

Your image link is broken.

Yep, i just fixed a moment ago.

Could be done using @JoeStrout 's PixelSurface I’m sure.

Also could be done using dynamic masking I suppose:

3 Likes

Pixel surface kind of getpixel or setpixel?

For inverted masking it’s not cut the sprite / object permanently. So i don’t think masking will work. I used inverted masking to my other project. But cannot to used on this case.

Yes, PixelSurface provides get/set pixel functions (as well as various drawing functions).

So, as the wedge (which could be a sprite, for example) moves into the circle, you would just clear the corresponding pixels of the PixelSurface.

Okay, tq very much i will try it.

Oh yeah, did it cut the real sprite on assets folder?

Cus, if you use set or get pixel on default in unity it will change the sprite in assets folder.

PixelSurface is not a sprite — it’s essentially a rectangular area in which you can efficiently get/set pixels. You can layer this with sprites, but it is not a sprite itself.

So, no, this won’t have any effect on your sprites in the assets folder.

1 Like

Tq very much,sir.

you could probably do this with a geometry-based system as well, like there is a nice asset for ‘destructible 2d’ that lets you do this I think.

Can i know what is “geometry based system”? It’s like minecraft?

no, 2d. look up destruct 2d on asset store

I don’t really want to avoid assets store script. I can’t buy it and i want to know how the system work.
Sorry but that assets really great i think my problem can be solved with that.