The Template generates this method:
void AMyProjectCharacter::MoveForward(float Value)
{
if ((Controller != NULL) && (Value != 0.0f))
{
// find out which way is forward
const FRotator Rotation = Controller->GetControlRotation();
const FRotator YawRotation(0, Rotation.Yaw, 0);
// get forward vector
**const FVector Direction = FRotationMatrix(Rotation).GetUnitAxis(EAxis::X);**
AddMovementInput(Direction, Value);
}
}
Rsults in strange movement behaviour. If you rotate the camera to the top the character slows down.
It should be like this:
const FVector Direction = FRotationMatrix(YawRotation).GetUnitAxis(EAxis::X);