How to get Yaw Value of an actors Forward Vector?

I need to apply force to an actors forward vector, specifically the player camera’s forward vector, but only the yaw plane. I don’t want them flying up or down because their camera is pitched up/down.

If I break the forward vector and pull from the Y pin, it just gives me a value between -1 and 1, but I need the actual yaw direction, -180 to 180

I tried the “Get Yaw Pitch From Vector” node and it does not work, it sends the actor flying in very random directions.

(post deleted by author)

I think I found the solution, but I have no idea if this is the proper way to go about it. All well.

To get the yaw value you can:

  • Make Z = 0.0
  • Normalize the resulting vector.
  • Atan2(y, x) = yaw in radians.

Hope it helps.