No suitable user-defined conversion from "FRotationMatrix" to "FVector"

void ABase_Character::MoveForward(float Axis)
{
FRotator Rotation = Controller->GetControlRotation();
FRotator YawRotation(0.0f, Rotation.Yaw, 0.0f);

	FVector Direction = FRotationMatrix(YawRotation).GetUnitAxes(EAxis::X);
	AddMovementInput(Direction, Axis);
}

Hi,

I’m a skilled artist that recently started learning a bit of coding for Unreal, I seem to have hit a snag where the conversion from FRotationMatrix to FVector gives 2 overloads and an error but I don’t know why. Please help!

Never mind! It was something stupid. I wrote GetUnitAxes but it had to be GetUnitAxis.

1 Like

Thanks for getting back and posting your findings. I was in the same situation