Why do I need to add a + Vector Node to get correct orientation

Hello I’ve been trying to understand vector math better in blueprints.

I’ve made this bit of code that launches the character -25 units backwards:

If I dont have that + vector my character gets launched a certain way depending on where my character is facing in the world(sometimes forwards for instance)

I’m just wondering why I needed to add that + vector to always be launched -25 backwards no matter which way my character is facing in the world.

You don’t need it for the math. What’s the other method? Just plug the output into the launch node?

Sorry for deleting my post

although the Math was correct there’s a catch on your “Launch Character” Node

The thing is that you don’t need any calculation - it already refers to the Local Space of your Actor = for backwards launch you need to specify X and Z :smiley:

Like this:
image

Because of the Math you did (and me in my Test)- it got messy instead of getting calculated the ‘intended’ way

Normally that would work to use forward Vector, Location and distance/power for launching or even LineTraces

But not here xD

I never really use Character type of BP, most would go for a Pawn instead for various reasons

Especially because Character derivers from that Class and instead relying on that Child Class - I prefer to create an own Pawn from scratch the way I need it :slight_smile:

1 Like

So oddly enough it works without the +vector node now. Pretty much my code was a line trace that checked if the actor was greater than 500 units above then ground, if true it launched via the code I screenshotted. This resulted in me needing the +vector.

I’ve since removed the line trace check and replaced with this:

Now I no longer need the +vector shrugs

1 Like