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"

Get where line trace exits object

I am shooting a line trace from the player and hitting an object. I then am firing a line trace from the hit location through the object. I want to get when the line trace leaves the object or when it is out in the air. Anyone have any ideas?

Product Version: UE 4.7
Tags:
more ▼

asked May 20 '15 at 02:33 AM in Blueprint Scripting

avatar image

VoidGoat
162 24 29 34

avatar image Narghile May 20 '15 at 02:38 AM

Hi Mate

To my knowledge, line trace works on contact. Unless it hits something, I doubt you will get any results.

I may be proven wrong though.

Narg

alt text

1.jpg (10.9 kB)
avatar image VoidGoat May 20 '15 at 02:45 AM

Is there some way to get the depth of an object then?

avatar image Narghile May 20 '15 at 02:51 AM

Hi

Not that I have seen, but post another question with that as title, more likely to get your answer.

Narg

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

2 answers: sort voted first

Just trace the exact same line but switch the start and end.

more ▼

answered May 20 '15 at 04:52 PM

avatar image

SND R Keene
968 31 120 113

avatar image VoidGoat May 20 '15 at 05:53 PM

This wouldn't necessarily work if there is another object that could be hit on the other side.

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

Use the multi trace where you get all the hits. Then find the hit on the same object. but it will now be on the other side.

more ▼

answered May 20 '15 at 06:39 PM

avatar image

SND R Keene
968 31 120 113

(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