What Is A Forward/Up/Etc Vector?
I know this sounds stupid, and it's probably self explanatory, but I just want to confirm I'm right in my insinuations on what these mean. I can't find anything anywhere about directional vectors. Where exactly is a "forward vector" on a component or actor?
asked Jun 30 '14 at 11:19 PM in Using UE4
The direction that is straight in front of the actor, based on its root component.
Directly to the right of the facing direction of the root component of the actor
I think you got this one
So these directions are relative to the rotation of the Actor's root component, which makes them every useful for things like dodging mechanics!
answered Jun 30 '14 at 11:25 PM
Just to add a bit to Ramas answer.
You could use these vectors relative to the
As Rama said, the functions:
Now, GetUpVector (LINK), GetForwardVector (LINK), GetRightVector (LINK)
get the the component from which you call this methods Z (up), X (forward), and Y (right) local vectors and convert that to a
An example of this is if the
Edit: Also, you can negate the vectors to get the opposite. Like, -Up (-Z) vector will give you the down vector, -Forward (-X) vector will give you Backward vector.
I hope this helps clarify a bit. =)
Follow this question
Once you sign in you will be able to subscribe for any updates here