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 can I have a lineTrace go into one side of a sphere, and out the other?

I'm trying to make a mechanic where you can point a laser into a sphere; as soon as it touches the surface, the laser "breaks" so that it goes through the center of the sphere, and out the other end.

It doesn't matter the angle of entry into the sphere; within the sphere, the laser starts where it initially hit, goes through the center, and out the other end, as a diameter.

I'm very new to this and Honestly, I have no idea how to do it, or what my possibilities are.

I'm guessing the initial line Trace dies when it touches the sphere, and the sphere spawns a new line trace at that location, going through the center and out the other end towards whatever it's going to touch in the world?

All guess work, Any help would be much appreciated.

Thank you.

Product Version: UE 4.15
more ▼

asked May 12 '17 at 03:28 AM in Blueprint Scripting

avatar image

20 4 3 9

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

1 answer: sort voted first

What you need is a Multi Line Trace.

This video actually shows exactly what you need:


more ▼

answered May 12 '17 at 04:32 AM

avatar image

728 20 25 108

avatar image SpectreKelevra May 12 '17 at 10:39 PM

Thank you, it's a very informative video, but Actually this forms a regular straight line that goes through objects, what I need is to be able to break the line as though it's going through a prism.

avatar image SpectreKelevra May 15 '17 at 02:08 AM

I solved it with a single line trace, But my answer is very specific to my case, so if anyone stumbles into this thread, I'm following it, and I'd be happy to help anyone.

(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