How to get the impulse/force of a hit/impact/crash?

When a character hits a wall or falls from a great distance, how can I get the impulse/force/whatever of that crash to determine what I do next, like, deal damage, death, explosion, etc.?

I am using some raw calculations like the difference between the last update velocity and the velocity, but it is clunky and I know that is not the way. I´m not a mathematician, sorry. :slight_smile:

If the character uses a MovementComponent, you can’t get the impulse, because it will always be 0. If it simulates physics, you can get it from the HitResult.
For character movement, you can get the velocity and calculate your values based on that.

1 Like

Ok, thanks ! Great !
I did something like this.

I am getting the difference between current velocity and last updated velocity, and I can use that value to determine if the hit is hard/lethal or whatever.

1 Like