Jump to content
  • Advertisement
Sign in to follow this  
NoDamnH

Unity Creating destructible environment in Unity 2D?

This topic is 1515 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, I have been thinking in a game kind of like Worms Armageddon, and been wanting to create it in Unity, but I can't wrap my head around how would I achieve this. Like being able to modify the colliders at runtime (ie, when a portion of the environment is destroyed then a character would be able to walk in it), also the visual part itself. Any ideas/tutorials/links on how can I achieve this? Thanks!

Share this post


Link to post
Share on other sites
Advertisement

Just some conceptual ideas that may help.

I believe a lot of Worms was based on 2D images, with transparent areas for the parts where you could walk, and colour representing solid ground

 

Imagine worms as mspaint. The level is a work of art, drawn in it. And destroying the landscape is akin to selecting the eraser and deleting parts of that image.

 

There are lots of libraries and such for comparing images for overlapping pixels, the exact technical details of that are above me. But i know that the worms games are REALLY finicky about it, and they'll detect a rapidly moving object colliding with a single pixel, probably indicating that it uses interpolated collision calculatons.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!