[Closed] [Question] Get Hit Force
I was wondering if someone could explain to me how to get the force of the object (How hard it hit you) when you do a "On Hit" event.
For example, I fall on the ground, i hit the ground, I want to know how hard i hit the ground.. :3
What i'm trying to get this to work for, is things like rocks falling on your head. So that if a physics object falls on you, it negates a specific amount of health based on the force it hit you with.
Edit: Also, i'd like to be able to do this all on the players blueprint, so that i don't have to edit all of my physics objects.
The question has been closed Sep 14 '15 at 07:01 PM by Adam Davis for the following reason:
The question is answered, right answer was accepted
Getting Force of Impact, Mass x Speed
You can use my node setup below to get the speed x mass of the other object at the moment of impact.
You could add this to the speed x mass of Self at the time of impact to get total force of impact involved
As it is though, this node setup will tell you the force of Other upon Self, like rock falling onto player
I am printing the results to the screen for easy of testing and determining how much damage you want to apply :)
answered Mar 11 '14 at 02:55 AM
ue4-archive ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here