- Home /
thoughts on making destroyable buildings
I have been looking around and havent found alot of info on the subject, so i am looking around for some input on different methods of trying to do this. any suggestings please post.
thanks
wayne
I agree. Unity Answers is only for specific problems where an answer exist. What you are asking are suggestions and pro/cons and there is not the one correct answer for it, but several options are available, depending on your project
Answer by Kroltan · Apr 28, 2012 at 03:59 PM
You can either model different chunks of each building, build them up in Unity, add static rigidbodies, and a script that controls the rigidbodies when you want to collapse the building. Pros: Fast, Simple to make. Cons: Always the same shape of rubble, boring to set up, uses a lot of disk space.
Or you could make some crazy code to generate a dynamic mesh and make a gameobject out of each part. Pros: Visually better, tweakable, lightweight (for disk). Cons: May lag on not-so-good computers, requires advanced knowledge on mesh creation.
You could also swap the building Placing a trigger box just in front of the building between a one piece and the broken one just before it gets hit and let the engine send the rigidbodies where they should go. $$anonymous$$ight not be as artistic but quite easy to start with.
Your answer
Follow this Question
Related Questions
developing a CAD tool 2 Answers
how to make destructible buildings? 2 Answers
Sketchup Buildings in Unity 2 Answers
Modular building system. 0 Answers
Buildable parts 0 Answers