Answer the question
In order to leave comments, you need to log in
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
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
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 questionAsk a Question
731 491 924 answers to any question