How to make a Line Trace ignore all Normal Vector that is not Z=1

Im making a targeter where it always goes to the floor, the BP works great until I look at the wall straight on, then the second line trace turns green and the targeter doesnt go to the floor. I’m guessing its because when I’m looking straight on it clips through the wall enough to collide with the line trace, I would just add that wall element to be ignored but then I would have to do that with all other wall like elements. I think it would be better in the future if I make it so it ignored all Normal Vectors that do not face straight up.

That blueprint is very confusing. Do you need to move the cursor 4 times or could you just save the position in a variable?

Im pretty new to Ue5 and blueprints, so this is the best my smooth brain could come up with. If you could show me a cleaner way to do what I want then that would be great.

1 Like

I am not entirely sure what you want or what the problem is, but I think this might help.


1 Like

Thank you, this solves the issue of the second line trace colliding with the wall, I’ll have to make some adjustment as, right now, if there is no hit within the max distance the targeter doesnt work; Which is something I had in my original BP.

If there is no hit, what should the targeter do?

The same thing as if it did hit but at the max range. But I made it work, thank you for the help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.