Download

Getting actor "up" vector

I’ve been trying to figure out how to get an actors “up” vector. Essentially the positive Z vector originating at the actors location.

I’m a bit of a newb, so if this question is dumb I apologize. I did spend some time googling/forum searching/API hunting and haven’t been able to figure it out. Thanks in advance!

Hi,

Here is what i do:



void AMyCharacter::MoveUp(float Value)
{
		const FVector Direction = GetActorUpVector();
		AddMovementInput(Direction, Value);
}


Cedric