[Free Open Source] Unity 2.5D Destruction

Hello there!

Since I often get very valuable help and assets from this very forum, I thought of contributing myself.

Some time ago I had the need of a 2D destruction asset and this: [Free Open Source] Unity 2D Destruction (GitHub - mjholtzem/Unity-2D-Destruction) fantastically did the job.
Now, as I moved onto a different project, I found myself needing something slightly different.
After some tweaks and tests, here I present:

Unity 2.5D Destruction


I am quite aware that there are not many crazy people out there (like me) who enjoy suffering and mixing 2D sprites in a 3D world but here you go: GitHub - Nesh108/Unity-2.5D-Destruction: Turn sprites into 2.5D destructable objects .

I made as little changes as possible in order to make it easier to switch.

Here are some tasty new features:

  • Timed destruction of each fragment (this can also be set as a range for a slow cleanup)
  • Mass/Drag/AngularDrag per fragment (also settable as a range)
  • Gravity for all the fragments
  • Collider type of the main object (for the moment each fragment is a simple and tiny mesh collider)
  • Collider width (these can be tuned manually after the generation)

This means that you can now explode 2D sprites onto a 3D world! :smile:

TODO

  • Add more precise mesh collider for each fragment

That’s all folks!

/Nesh

5 Likes

That is pretty neat!! Great work and thanks for sharing.

As I remember with Unity-2D-Destruction you couldn’t place it into a prefab as the meshes won’t get saved.
Would that be possible with your 2.5D update?

Mmmm, haven’t tried that. I think one would have to serialize each generated mesh before the prefab worked.
Might look into it in the future :slight_smile: