Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

2D Collision "Bouncing" slightly when coming with momentum.

Discussion in '2D' started by Kikaiji, Jul 4, 2021.

  1. Kikaiji

    Kikaiji

    Joined:
    May 22, 2019
    Posts:
    11
    Hello! as the title states, objects seem to "Bounce" slightly when hitting collision with some velocity. Im unsure as to how to fix this problem but it is annoying me. Any help is appreciated.
     

    Attached Files:

  2. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    Hey

    You could try giving the Rigidbody2D of the object a Physics Material 2D, and set the bounce to 0.
     
  3. Tyrant7

    Tyrant7

    Joined:
    Aug 15, 2019
    Posts:
    34
    So by my experience this is caused by the object going inside the other object's collider slightly, and then being pushed outwards again, in this case I think setting the collision detection to continuous should solve your problem.
     
    Kikaiji likes this.
  4. Kikaiji

    Kikaiji

    Joined:
    May 22, 2019
    Posts:
    11
    Yep! This was exactly it. Thanks!