I’m currently moving an actor using a simple direction vector. The problem I’m having is having that actor point towards the direction they’re moving in. For example, if the vector was (0, -3, 0) then the rotation would be (0, 0, 0) but if it was (-3, 0, 0) then the rotation would be (0, 0, -90) and if it was (-3, -3, 0) then it would be (0, 0, -45). The biggest problem I’m having is figuring out if the vector was something like (3, -15, 0) how I would calculate the rotation?
I want the actor to rotate in the forward direction it’s moving in. For example, if the actor was just moving on the positive x axis then the rotation’s yaw value would be 90. That’s what I’m trying to do.
It seems like that could work but the rotation is off by about 90 degrees.
Either add 90 or rotate the actor (in Blueprint editor).
I tried adding 90 and now it rotates once and then doesn’t rotate again.
EDIT: nvm I got it working.

