Distance Matching Locomotion : Giving it a shot!

Look at source code of UCharacterMovementComponent::CalcVelocity