Does anyone have clue on how to create pocket tank like destructible terrain.
It doesn’t necessarily need to be destructible terrain. Terrain that deforms under explosions should do just as well. You can generate craters based on the size of the size of the explosion by accessing the terrain mesh and moving the vertices of mesh with respect to the center of the explosion. Furthermore, the area that was deformed can be blackened based on the geometry of the explosion through altering the texture. You’ll need to figure out how to do this.
Classes you’ll need:
(1) Terrain
(2) Mesh
(3) ??? (something to alter the texture on the terrain)
Things you’ll need to watch for:
(1) You don’t want a vertex that is being moved to intersect with another vertex in the mesh… that could produce some very interesting bugs.
(2) The act of writing the code will generate some bugs.
You have your mission should you choose to accept it, itachi4365. (Cue: Mission Impossible music)
Or you can search the forum a bit and see that others have done it… like. Eric5h5
http://forum.unity3d.com/threads/10611-can-you-realtime-terraform-inside-a-Unity-game?p=75260&viewfull=1#post75260