Search Unity

I wrote an article on how to get the collision impact force

Discussion in 'Physics' started by Vasile-Peste, Jul 30, 2019.

  1. Vasile-Peste

    Vasile-Peste

    Joined:
    Jul 23, 2018
    Posts:
    4
    Hello there! I am creating a 2D with rigid bodies and I was searching for a way to deal damage
    to characters when they fall from elevated heights.
    So I was basically searching a way to calculate this damage and I thought to deal damage based on the collision impact force, but I didn't find a way to get it so I made some researches, read and elaborated something. This is the final result: https://www.malgol.com/how-to-get-the-impact-force-of-a-collision-in-unity/

    Please let me know, hope it helps.
     
  2. sergeminator

    sergeminator

    Joined:
    Jul 31, 2019
    Posts:
    1
    Great article! thanks for sharing.
     
    Vasile-Peste likes this.
  3. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    2,510
    Good article!

    I'd wish that the impulses in 3D come per-contact instead of grouped, as I'd have a very useful utility for them. Nice to see they come per-contact in 2D.
     
  4. Vasile-Peste

    Vasile-Peste

    Joined:
    Jul 23, 2018
    Posts:
    4
    Thank you all!