So, why exactly doesn't this work? (Set World Position, huh?)

Hi. :wave:

So I made this simple function that calculates screen corner positions and translates it to world space.

And it clearly is working when I test it with Draw Debug Sphere:

But as soon as I try to set the world position of something else, they just disappear and I do not understand why…


Can someone smarter please explain this to me, because I am lost.
(Also, the tick is just for experimenting, I don’t use it in the actual game)

Thank you for any replies and ideas!

Hey @Shounenn!

So you’re taking a 2D Vector and returning a 3D vector- that’s where the math is getting confusing.

Because in a vector 2D, X=width and Y=height, but in UE: X=Depth, Y=width, and Z=Height. (According to world center)

Depending on your rotation and your facing of where world center is these numbers can change quite a bit, subtracting, say, 20 from the Y (which is left and right axis of world center) depending on your rotation can really change where this ends. What does it do if you don’t alter it in any way?

Let us know! :slight_smile: