Hello!
Inside: Tick (float DeltaTime)
to get the rotation of my character I just use:
FRotator MyCharacteRotator = GetWorld()->GetFirstPlayerController()->GetPawn()->GetActorRotation();
to prove that all this well I use a log on screen:
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Blue, FString::Printf(TEXT(“Player Rotator: %s”), *MyCharacteRotator.ToString()));
when I move my character correctly my vector is updated
I want to turn the rotation into a vector to get the coordinates x, y and z. but I can not find the correct way. since I use:
FVector NewRotationVector = MyCharacteRotator.Vector();
I do not know if it is the correct form or if I am doing something wrong because it only returns the value of 1 when the rotation is made. and should return values like 0, 90, -90, -180
I’m waiting for an answer, thanks.