Forward/right/up velocities of an Actor

I need the forward, right, and up velocities of an actor.

AActor::GetVelocity()

does not seem to provide the desired results. It feels like the returned vector is in a global coordinate system.

For vehicles there is a GetForwardSpeed(). I need the same but for right and up as well (and for actors which are not a vehicle).

How can I get these velocities?

I think I just found the answer myself.

FRotator rot = actor->GetActorRotation();
FVector vel = rot.UnrotateVector(actor->GetVelocity());

vel now contains the velocities in forward, right, and up direction.