60 return FString::Printf(
TEXT(
"Pose:%s TraceChannel:%d Params:%s"), *Pose.
ToString(), (
int32)TraceChannel, *Params.ToString());
64 return FString::Printf(
TEXT(
"Start:%s End:%s TraceChannel:%d Params:%s"), *Start.ToString(), *
End.ToString(), (
int32)TraceChannel, *Params.ToString());
74template <
typename BufferType>
89 if (FSQHitchRepeaterCVars::SQHitchDetection)
96 const bool bLoop = (
LoopCounter < FSQHitchRepeaterCVars::SQHitchDetection) && (
HitchDuration * 1000.0) >= FSQHitchRepeaterCVars::SQHitchDetectionThreshold;
99 QueryCallback.bRecordHitches = QueryCallback.bRecordHitches ?
true : bLoop && FSQHitchRepeaterCVars::SQHitchDetection == 1;
126 , QueryCallback(QueryCallback)
129 if (FSQHitchRepeaterCVars::SQHitchDetection)
143 if (QueryCallback.bRecordHitches)
148 for (
const FCollisionQueryFilterCallback::FPreFilterRecord&
Record : QueryCallback.PreFilterHitchInfo)
152 QueryCallback.PreFilterHitchInfo.Empty();
155 QueryCallback.bRecordHitches =
false;
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ECollisionChannel
Definition EngineTypes.h:1088
return true
Definition ExternalRpcRegistry.cpp:601
#define UE_LOG(CategoryName, Verbosity, Format,...)
Definition LogMacros.h:270
Definition IConsoleManager.h:1580
Definition CollisionQueryFilterCallback.h:20
Definition ScopedTimers.h:32
CORE_API FString ToString() const
Definition UnrealNames.cpp:3537
Definition CollisionQueryParams.h:43
Definition ScopedSQHitchRepeater.h:30
FString ToString() const
Definition ScopedSQHitchRepeater.h:70
FHitchDetectionInfo(const FVector &, const FVector &, ECollisionChannel, const FCollisionQueryParams &)
Definition ScopedSQHitchRepeater.h:68
FHitchDetectionInfo(const FTransform &InPose, ECollisionChannel InTraceChannel, const FCollisionQueryParams &InParams)
Definition ScopedSQHitchRepeater.h:69
Definition ScopedSQHitchRepeater.h:76
BufferType & UserBuffer
Definition ScopedSQHitchRepeater.h:166
bool RepeatOnHitch() const
Definition ScopedSQHitchRepeater.h:169
FScopedSQHitchRepeater(BufferType &OutBuffer, FCollisionQueryFilterCallback &PQueryCallback, const FHitchDetectionInfo &InHitchDetectionInfo)
Definition ScopedSQHitchRepeater.h:161
BufferType & GetBuffer() const
Definition ScopedSQHitchRepeater.h:168