N
N
Nazarevsky2021-07-26 22:53:24
Unity
Nazarevsky, 2021-07-26 22:53:24

How to unbounce GameObjects in unity?

I'm making a game on a unity, the essence is in building a tower (blocks fall from the sky, land on other blocks). Upon landing, the top block bounces slightly off the tower. But, the joke is that all the lower blocks in the tower also bounce off each other. Please tell me if it is possible to remove such a rebound without touching the physical friction parameters. object material?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikita Polishchuk, 2021-07-27
@PNECtarine

You can play around with the mass, well, or put the lower blocks in the kinematics.
You can look at this guy's small courses in physics in unity

T
Tosha43, 2021-07-27
@Tosha43

Bounced in physical material on object 0?

E
Evgeny Glebov, 2021-08-05
@GLeBaTi

Without touching physical material
Reduce speed to 0 when touched:

void OnCollisionEnter(Collision collision)
{
   //тут нужные условия
   rigidBody.velocity = Vector3.zero;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question