/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h
Modify the quaternion to ensure that the delta between it and B represents the shortest possible rotation angle.
static void Quat_EnforceShortestArcWith ( FQuat & A, const FQuat & B )