There isn’t enough information here to answer this properly.
A vector isn’t an angle… it’s a vector.
You’ve said what you don’t want, but what do you want? The forward vector of what?
Where are you calling this function from?
I know this is your first post, but you need to be specific.
A camera is not an Actor, but an Actor Component, so GetActorForwardVector
will get the forward direction of the actor that the function is being called from, and not the forward direction of the camera. If you want the forward direction of the camera, you would get it like this:
UCameraComponent* CameraComponent = FindComponentByClass<UCameraComponent>();
if (CameraComponent)
{
FVector ForwardVector = CameraComponent->GetForwardVector();
}
However, my code should actually give you the behaviour you don’t want, so something isn’t making sense with your post.