Unity3D, a plasticine model

Hello.

Please answer a few questions.

Task: it is necessary to make a ball, such that if a metal object is dropped on it, the ball under the influence of gravity is somewhat deformed and retains its deformation. The action takes place in Unity.

I understand that Unity itself can only create metal objects(or make imported models metal), and the maximum way I can get closer to the goal is to pick up (or create) some collider material, but the necessary one, as you understand, is not there, I was a lot like izgol, but the ball did not bend.

The questions are as follows:

Is it possible to do this only with Unity? If so, through which component? Or through a script? If the script, then in which direction to hum?

If it doesn't work only through Unity, what should I do? Create a model in a 3D editor? What should be considered?

Such deformations are made through animation, or through native properties the object?

Thank you in advance.

Author: Трикс, 2018-04-26

1 answers

What you want to get is not regulated by the collider material for the model. The collider material is responsible for how it will interact with other colliders.

Your question lies in the area of changing the vertices of the mesh. I can advise you to read three articles on habra dedicated to this, just be able to more fully understand the essence of the issue.

Part 1 - Generating a mesh using a height map
Part 2 - Deforming a mesh using a map heights
Part 3-Mesh deformation based on collisions

 2
Author: M. Green, 2018-04-27 05:36:04