FRotator Rotation = Controller->GetControlRotation();
FRotator YawRotation(0.0f, Rotation.Yaw, 0.0f);
FVector Direction = FRotationMatrix(YawRotation).GetUnitAxis(EAxis::X);
AddMovementInput(Direction, Value);、
在第三人称全视角下,视角看向的方向为正方向移动方法。