How could I add physics upon hit when my character gets hit?
I am curious how would one (in blueprints) do the following:
I am trying to make a hit reaction to being hit by big boulder in my game. Does one do this with animations or more simply thru blueprints.
Any insight would be appreciated (or event better a blueprint example), thank you... and a +1 coming for ya.
Very simply: create an event hit which would containt the necessary info regarding the colllision. You can use the "hit normal" to detemine the direction of the hit. Then simply normalize and inverse this vector to find its opposite. Finsih by connecting it to an "add force" function. I haven't put it here, but you may want to get the speed, mass etc. of the "other" actor/object and use it as a multiplier for the force after reversing the normal vector. Alternatively, you can multiply it with some constant.
answered May 21 '14 at 11:29 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here