UWorld::AsyncOverlapByChannel

Interface for Async trace Pretty much same parameter set except you can optional set delegate to be called when execution is completed and you can set UserData if you'd like if no delegate, you can query trace data using QueryTraceData or QueryOverlapData the data is available only in the next frame after request is made - in other words, if request is made in frame X, you can get the result in frame (X+1)

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/World.h

Include

#include "Engine/World.h"

Source

/Engine/Source/Runtime/Engine/Private/Collision/WorldCollisionAsync.cpp

Syntax

FTraceHandle AsyncOverlapByChannel
(
    const FVector & Pos,
    const FQuat & Rot,
    ECollisionChannel TraceChannel,
    const FCollisionShape & CollisionShape,
    const FCollisionQueryParams & Params,
    const FCollisionResponseParams & ResponseParam,
    FOverlapDelegate * InDelegate,
    uint32 UserData
)

Remarks

Interface for Async trace Pretty much same parameter set except you can optional set delegate to be called when execution is completed and you can set UserData if you'd like if no delegate, you can query trace data using QueryTraceData or QueryOverlapData the data is available only in the next frame after request is made - in other words, if request is made in frame X, you can get the result in frame (X+1)

FTraceDelegate TraceDelegate; TraceDelegate.BindRaw(this, &MyActor::TraceDone);

Parameters

Parameter

Description

Pos

Location of center of shape to test against the world

bMultiTrace

true if you'd like to do multi trace, or false otherwise

TraceChannel

The 'channel' that this query is in, used to determine which components to hit

CollisionShape

CollisionShape - supports Box, Sphere, Capsule

Params

Additional parameters used for the trace

ResponseParam

ResponseContainer to be used for this trace

InDeleagte

Delegate function to be called - to see example, search FTraceDelegate Example can be void MyActor::TraceDone(const FTraceHandle& TraceHandle, FTraceDatum & TraceData) Before sending to the function,

UserData

UserData

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss