Download

How to cast a ray trace from a 2d widget location? Or check for widget overlap?

The adventure continues.

I’ve got a 2d widget moving around like a cursor with my gamepad (thanks to some great forum help), and now I need to do a ray trace from its location to check for collision behind it. Alternatively if I could check for specific widget overlaps, I could make it work as well.

Here’s what I have right now. I know its not right, but I was checking to make sure it was returning the correct thing. This is coming off event tick on a actor blueprint I’ve attached to my character. The "mouse collision is the collision sphere I want to check and see if my cursor is over.

Thanks!

Screen Shot 2015-07-20 at 11.53.56 AM.png