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 make trace hit specific parts of an object?


I've been trying to a create a pulling/pushing system in my game. I've have been using traces to make sure the player is hitting the object then using a Actor local offset to move the object. My problem is that the player can hit the trace from any direction. Is it possible for the trace to hit a specific position of that object to move it? Like a trigger or a specific face?

Many Thanks Mrfantasticghost

Product Version: Not Selected
more ▼

asked Jul 27 '14 at 01:44 PM in Blueprint Scripting

avatar image

8 7 11 15

avatar image Smomo Jul 27 '14 at 04:22 PM

Why not use On Actor Begin Hit ?

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

1 answer: sort voted first

Here is one way you might do it.

On your break hit result, you have hit location. Use that to reference against your pawn's vector. Calculate up the offset between the pawn's vector and all his parts that you want to react independently.

If a trace hits the pawn, you do the math to figure out where on the pawn it hit, and then call events accordingly.

You could do this to show a player being hit in the shoulder or leg, or perhaps you could use it to put spin on a pool ball.

more ▼

answered Jul 27 '14 at 08:16 PM

avatar image

1.8k 131 68 110

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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