L
L
Ler Den2019-03-28 19:06:41
Game development
Ler Den, 2019-03-28 19:06:41

Unity 2D. How to make destruction of the earth like in Pocket tanks?

Hello everyone, I'm new to Unity. How to make the destruction of the earth like in the video?
For example, a shot at 38 seconds. https://youtu.be/BmtcAA-1ke0?t=38
After hitting, a hole is formed, the terrain of the earth changes. How should the land object be organized? As I understand it, this will not be an ordinary sprite, but something like a line renderer?
Tell me, in which direction to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Ivanov, 2019-04-01
@keksmr

In this video, all the destruction is pre-drawn. If anyone played Worms 3D, then they saw how the map collapsed there. This was done using the minecraft method + folding the edges and borders of textures.
Here is a 2D analogue:
1. Create a map from cubes
2. We need the centers of these cubes
3. We will work on them now
4. Apply a suitable smoothing algorithm
5. Draw what happened
And when a projectile hits, you need to remove a certain number of cubes or just redraw the map

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question