I’m trying to get my actor to instantly face the direction of the vector of witch it’s moving.
But i cant seem to instantly rotate the actor the way i want to. Instead of just facing the right direction, it slowly rotates in the direction i want.
Well solution depends on how do you move your character. If you have your input vector e.g. you have pressed W meaning your movement vector is FVector(0.0f, 1.0f). Then you need to normalize the vector (in case you have both W and D pressed you would get vector that is not normalized) by callinng .Normalize() function on your input vector. Then you call .Rotation() function on your normalized vector which returns FRotator stucture. The simply set your APawn rotation by calling YourPawn->SetActorRotation(NewRotation).