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 do 2D line tracing collision checking on UMG widget?

I'm building a test and simple mini triangle peg game for fun using UMG and need to know when a line from 2 points intersects a widget in 2D only, is there a way I can use line tracing with UMG to perform collision detection on the widget without putting the widget in another blueprint and performing a 3D line trace?

Product Version: Not Selected
more ▼

asked Mar 31 '15 at 11:08 PM in Blueprint Scripting

avatar image

465 46 48 66

avatar image Josterd Oct 08 '15 at 11:29 AM

I am currently also looking into this. Cannot find anything on the internet. Is there anyone with any knowledge on this whatsoever?

avatar image Enlo Oct 08 '15 at 11:36 AM

I think this is simply not possible. Think of HUDs as GUI on your camera output, it is not part of the "real world". Only 3D widgets are "real" objects

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

1 answer: sort voted first

This should not go unanswered. So, you can use a variety of 2D collision checks yourself in C++ or Blueprints. UMG unless recently added does not have a Blueprint node, but it is fairly simple math using widget x and y positions. For reference https://developer.mozilla.org/en-US/docs/Games/Techniques/2D_collision_detection There are many other 2D references if you search. I have used the circle collision etc in UMG.,

more ▼

answered Nov 03 '17 at 10:37 PM

avatar image

51 3 6 7

(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