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"

how to get normals from BeginOverlap event

I am trying to write a blueprint actor that "snaps" projectiles velocities in a given direction when they pass through it. What I would like is to write an BeginOverlap event that checks the normal of the face the projectile passed through, then change the projectile's rotation so that its forward vector is -1 times that normal.

The issue is that I see no way to acquire the hit normal from an BeginOverlap event. You can get the hit normal from an onHit event, but then the projectile will bounce off or explode, which is not what I want.

Does anyone know how to get the hit normal from an BeginOverlap event? If not, is there some other way of building such an actor?

Product Version: UE 4.12
more ▼

asked Oct 26 '16 at 01:48 AM in Blueprint Scripting

avatar image

21 3 4 7

avatar image HaxO Oct 27 '16 at 06:07 PM

Another approach could be to use OnHit with an 'Actor Has Tag' node with a branch so you can distinguish between which actors it blows up on and which actors deflect ( or refract ) it.

avatar image player0 Nov 01 '16 at 08:00 PM

That seems like a good workaround. Thanks.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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