- Home /
Destructible walls, or objects (etc...)
Hi, I was just wondering if there is a way to make walls destroy. I mean destroying like in Red Faction, or something similar. I've already tried to do it with the swapping style, but it was just...wrong. I made it like you have a wall, there are 30 cubes parented to the wall, when you shoot em, they instantiate another 4 cubes, etc... But is there a way to make it destroy reallisticly? I was thinking, that it could be like, when you shoot one object, there is a invisible explosion, and everything that touches that would just start to move, like set kinematic to false, or something like that... I just cant figure it out :(.
-- David
Answer by Kos-Dvornik · Jan 05, 2015 at 05:04 PM
There is 2 options:
-Procedurally split 3D mesh into pieces -Manually pre split then show chunks
Good tutorial for second option with ASSETS is available here: http://kostiantyn-dvornik.blogspot.com/2015/01/unity-anoxemia-destruction-tutorial.html
Answer by jonnyB · Jun 22, 2011 at 04:53 PM
you could try playing around with a particle emitter or make an animation for it.
for an animation though you would have to make a couple of different ones for each contact point
nah, I mean, DESTROYING, like not particles, but destroying the object -- http://www.youtube.com/watch?v=2-kBPzguxF0
Answer by Chris D · Jun 22, 2011 at 05:45 PM
Using the search function yields this. Please remember to search before posting.
The long and short of it is no, Unity doesn't have the built-in capabilities to do real-time destruction like Red Faction has.
What you can do is fake it. Have areas that are 'destructible' and swap out the meshes for them when damage is detected. It's not the same but, depending on what you want to do, it might be good enough.
Your answer
Follow this Question
Related Questions
Trash Collection For Instantiated Game Object 1 Answer
when prefabs are spawned I want to touch them to destroy. help? 0 Answers
Destroying all enemy characters after the level is over 4 Answers
how to destroy an object then instantiate another from a prefab 1 Answer
Instantiating droppable items on destroy game object 1 Answer