N
N
Nikola_y2015-12-31 02:00:19
C++ / C#
Nikola_y, 2015-12-31 02:00:19

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

3 answer(s)
D
Daniil Basmanov, 2015-01-06
@Nikola_y

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.

I
Ivan Zhukov, 2015-12-31
@ih8write

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)

Z
Zelimkhan Beltoev, 2015-12-31
@Beltoev

You need to use prefabs.
Read more here (description) and here (examples of use)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question