Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Why do some collisions bounce off each other and some collisions act like magnets and you stick?

Discussion in 'Physics for ECS' started by goodnewsjimdotcom, May 29, 2021.

  1. goodnewsjimdotcom

    goodnewsjimdotcom

    Joined:
    May 24, 2017
    Posts:
    342
    Why do some collisions bounce off each other and some collisions act like magnets and you stick to the object? Video here:


    This is in both DOTS and normal physics, and I always wondered why. It would help me to change the physics shape/body to use. Cuz I don't want to stick like a magnet.
     
  2. TRS6123

    TRS6123

    Joined:
    May 16, 2015
    Posts:
    246
    In the PhysicsShapeAuthoring there is a field called "Restitution". Setting it to 0 will cause the object to stick and setting it to 1 will make the object bounce with complete elasticity. The dropdown next to the field determines how two objects will interact in a collision if their restitution values are different (geometric mean, minimum, maximum, arithmetic mean).
     
    petarmHavok likes this.