Bounce back collision when hit
I'm currently working on a top down shooter game in the vein of something that you would see in old arcade games. I'm trying to figure out how to get my player character to recoil backwards when hit by a projectile (preferably at the angle he was hit at). The best example of what I am trying to receive would be from the original Legend of Zelda when Link recoils from a hit. Anybody know how I would pull something like this off in blueprints.
asked Sep 14 '15 at 05:30 AM in Blueprint Scripting
Hey, Are you able to get the velocity vector of the projectile or the rotation? If so you could normalize this to get the direction it was travelling and apply some sort of 'force'. The character movement component has an acceleration vector which you may be able to use but not sure. I'm sure there's probably some built in physics functionality that could be used also achieve this but i haven't played around with the physics in UE4 so cant really offer any advice there.
(Hopefully i've understood what you're trying to achieve)
Just yell out if that isn't clear.
answered Sep 14 '15 at 10:45 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here