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!