Is there a bug in the 3rd Person Template MoveForward function?

Hey Guys,
I was just playing around with the c++ third person template, when I noticed that the movespeed from the MoveForward function in the character class is directly depending on the camera angle. So when you move the camera as high as possible (i.e. when you look down on the body) you can’t move anymore.
I think that is, because the FVector Direction only uses Rotation, instead of YawRotation, and YawRotation remains unused.

void AUnreal_LifeCharacter::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);
	}
}

My question is now: bug, or feature?

Greetings,
Tobi

Thanks for the fix, my vote is on bug.

Exact portion to change btw to save anyone time in the future (Note YawRotation in FRotationMatrix instead of Rotation):

const FVector Direction = FRotationMatrix(YawRotation).GetUnitAxis(EAxis::X);

Hello, Zer0. Thank you for pointing this out to us. We are looking into this issue.

Have a great day.

Hi Zer0. I just wanted to let you know that we have a fix in place for this issue, and it will be rolled out in a future update.

Have a great day.