Animate 3D object disassembly in Unity3D

99封情书 提交于 2020-01-25 01:20:06

问题


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.



来源:https://stackoverflow.com/questions/25279198/animate-3d-object-disassembly-in-unity3d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!