![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <WorldCollision.h>
Inheritance diagram for FTraceDatum:Public Member Functions | |
| ENGINE_API | FTraceDatum () |
| ENGINE_API | FTraceDatum (UWorld *World, const FCollisionShape &CollisionShape, const FCollisionQueryParams &Param, const struct FCollisionResponseParams &InResponseParam, const struct FCollisionObjectQueryParams &InObjectQueryParam, ECollisionChannel Channel, uint32 InUserData, EAsyncTraceType InTraceType, const FVector &InStart, const FVector &InEnd, const FQuat &InRot, const FTraceDelegate *InDelegate, int32 FrameCounter) |
Public Member Functions inherited from FBaseTraceDatum | |
| FBaseTraceDatum () | |
| void | Set (UWorld *World, const FCollisionShape &InCollisionShape, const FCollisionQueryParams &Param, const struct FCollisionResponseParams &InResponseParam, const struct FCollisionObjectQueryParams &InObjectQueryParam, ECollisionChannel Channel, uint32 InUserData, int32 FrameCounter) |
Public Attributes | |
| FVector | Start |
| FVector | End |
| FQuat | Rot |
| FTraceDelegate | Delegate |
| TArray< struct FHitResult > | OutHits |
| EAsyncTraceType | TraceType |
Public Attributes inherited from FBaseTraceDatum | |
| TWeakObjectPtr< UWorld > | PhysWorld |
| FCollisionParameters | CollisionParams |
| ECollisionChannel | TraceChannel |
| uint32 | FrameNumber |
| uint32 | UserData |
Trace/Sweep Data structure for async trace
This saves request information by main thread and result will be filled up by worker thread
| FTraceDatum::FTraceDatum | ( | ) |
| FTraceDatum::FTraceDatum | ( | UWorld * | World, |
| const FCollisionShape & | CollisionShape, | ||
| const FCollisionQueryParams & | Param, | ||
| const struct FCollisionResponseParams & | InResponseParam, | ||
| const struct FCollisionObjectQueryParams & | InObjectQueryParam, | ||
| ECollisionChannel | Channel, | ||
| uint32 | InUserData, | ||
| EAsyncTraceType | InTraceType, | ||
| const FVector & | InStart, | ||
| const FVector & | InEnd, | ||
| const FQuat & | InRot, | ||
| const FTraceDelegate * | InDelegate, | ||
| int32 | FrameCounter | ||
| ) |
Set Trace Datum for each shape type
| FTraceDelegate FTraceDatum::Delegate |
Delegate to be set if you want Delegate to be called when the output is available. Filled up by requester (main thread)
| FVector FTraceDatum::End |
| TArray<struct FHitResult> FTraceDatum::OutHits |
Output of the overlap request. Filled up by worker thread
| FQuat FTraceDatum::Rot |
| FVector FTraceDatum::Start |
Input of the trace/sweep request. Filled up by main thread
Start/End of the trace The Shape is defined in FBaseTraceDatum
| EAsyncTraceType FTraceDatum::TraceType |
Whether to do test, single or multi test