Get Unit Direction (Vector) returning 0,0,0

I have an actor, an empty collision box, with scene components that designate their world locations. I am trying to get a direction from the center of the actor towards one of its sides to generate locations within the actor.

If I draw a debug line it works fine.


However, if I try and get a direction and multiply it to generate a new location, it spits out 0,0,0 offset by x


Individually the vectors will generate a sphere without a problem, but when they are plugged into the “get unit direction (vector)” node it just comes back 0,0,0

1 Like

GetUnitDirection gives you just the direction from point A to point B. So like 1,0,0 or 0,1,0 or 0,6 , 0,5 , 1.
So this sphere should be at 0,500,0 or something.
When you say 0,0,0, did you use a PrintString to check it? 0,0,0 => From Point = To Point
Which value has your Left vector? Because if it is already a point you could use that as the center. If it is also just a direction, you have to multiply it like you just did and add the origin to it.

Oh you’re right! Obvious mistake; I forgot to actually set the origin. Probably poor variable name choices on my part got me here.

Thank you.

1 Like