x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.9
Tags:
more ▼

asked Sep 14 '15 at 05:30 AM in Blueprint Scripting

avatar image

RetroSpecter
3 1 2 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.

Harley.

more ▼

answered Sep 14 '15 at 10:45 AM

avatar image

HJRS
31 1 3 4

avatar image RetroSpecter Sep 14 '15 at 09:02 PM

Thanks man. I looked into how force works a bit more and was able to find the node "Launch Character", which I can use to get the effect I want.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question