Animate 3D object disassembly in Unity3D

2019-08-05 09:40发布

问题:

my question is just about choosing the right approach because i'm not sure about the solution.

i got 3d model in my project, at some point i want to show animated disassembly , the object is made of somthing like 200 pieces. so animating with keyframe one by one is time consuming. the animation i'm looking for is like explosion from the center of the object so the parts will just move out of its center.

example image:

what would you do? what is the best way to manage such task?

回答1:

I would code it. Maybe I am biased because I am a programmer, but animating it would be a pain.

So I would import the model into Unity3d. Then I would grab all the parts and store them in a list. Once I have the 200 parts then I can do anything I want to them.

I would then proceed to attach rigibodies and box colliders to them all -- this can be done programmatically. Then you can initiate the explosion by adding a velocity to each part. If you want to be fairly realistic and have something that is fairly random you can give each object mass and then use the equation F=ma for the explosion. That is, each part will get different acceleration depending on the mass they have.