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"

Line trace doesn't hit 3D widget (VR)

I'm trying to make a crosshair/reticule which is draw where it hits a 3D widget attached to the character. I tryied to use a line trace from my camera but the trace pass through the widget like it's not here. I did some test with all the collision settings but still no success.

Product Version: UE 4.15
Tags:
more ▼

asked Mar 23 '17 at 08:07 PM in Blueprint Scripting

avatar image

Haoris
164 4 11 21

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

3 answers: sort voted first

Did you make it to were it can collide?

more ▼

answered Mar 24 '17 at 02:42 PM

avatar image

Knight9871
25 3 3 4

avatar image Haoris Mar 24 '17 at 03:13 PM

I'm sorry, I don't understand your question, when I draw the debug line trace, the line trace hit what is behind the 3D widget and not the 3D widget itself. I have a small sphere that I use as a reticule and I set it's world location to the impact point of the line trace. It works on static meshes but It ignore the 3D widget attached to my character.

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

even with a collider you will need to set it as something for example: set it as a pawn collider or something like that if you know what i mean

more ▼

answered Mar 24 '17 at 03:20 PM

avatar image

Knight9871
25 3 3 4

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

I still need help with this. I tryied creating a custom trace channel, set the 3D widget collision to block this trace channel then do a LineTraceByChannel on this channel but it still doesn't hit the 3D widget and just pass through. The debug tracing of the WIdgetInteraction component succed to hit the widget so why do I can't hit it by line trace?

more ▼

answered Aug 26 '17 at 03:11 PM

avatar image

Haoris
164 4 11 21

avatar image VictorBurgos Aug 26 '17 at 04:52 PM

What version are you on?

(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