x


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

more ▼

asked Apr 28 '12 at 02:51 PM

wayne57 gravatar image

wayne57
43 12 29 35

This type of question is more suited for the forums.

Apr 28 '12 at 03:44 PM T27M

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

Apr 28 '12 at 04:19 PM Tseng

sorry will post in the forums

Apr 28 '12 at 05:33 PM wayne57
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Apr 28 '12 at 03:59 PM

Kroltan gravatar image

Kroltan
74 8 10 14

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. Might not be as artistic but quite easy to start with.

Apr 28 '12 at 05:41 PM fafase
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x37

asked: Apr 28 '12 at 02:51 PM

Seen: 415 times

Last Updated: Apr 28 '12 at 05:41 PM