Answer the question
In order to leave comments, you need to log in
Is it possible to add any properties to an object in Unity3D (such as glass, rubber, etc.)?
Is it possible to add any properties to an object in Unity3D (such as glass, rubber, etc.)?
What if the object, when it fell, was not like a brick of the
A type, it spread
Or when it springy, it flattened from interaction with the ground
And if possible, then how?))
Answer the question
In order to leave comments, you need to log in
This is called soft body physics, there is no such thing out of the box in the unit. You can use plugins, but in any case, this is an expensive simulation in terms of resources, in real time for 3D you most likely will not find anything suitable. Usually, this behavior of materials is imitated with the help of animations and programming magic.
There is a Material parameter in the Box Collider component, which has several properties, the property None (Physics Material) is set by default, you can choose any you need. For example, Bouncy is a physical property of an elastic body or a rubber body, it will bounce, spring, And here are the visual effects. For example, spreading, you need to write the deformation of the mesh yourself, or use spring joints (spring joints)
You need to use prefabs.
Read more here (description) and here (examples of use)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question