What's wrong with my relative location?

My cube roles around on a grid. I have a line trace from its work location to pointing Down on the z to make sure there’s a floor. But if the map ever tilts 90 degrees now the line will point to the side. Obviously.
I figured I needed to use RELATIVE location instead. But when doing that its drawing a line way out in the opened field.

Is there something I dont understand about relative location??? Its not right on my cube like world location is…

Can someone please help me?? Why would my relative by so far away from the actor when the world location isn’t???

i think you should use GetComponentLocation .

i had the same problem with relative location, that was far away from my actor. then i used its component location and i got the exact result as i wanted.

1 Like

use your actor’s component location instead