UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
KismetTraceUtils.h File Reference

Go to the source code of this file.

Functions

FCollisionQueryParams ConfigureCollisionParams (FName TraceTag, bool bTraceComplex, const TArray< AActor * > &ActorsToIgnore, bool bIgnoreSelf, const UObject *WorldContextObject)
 
FCollisionObjectQueryParams ConfigureCollisionObjectParams (const TArray< TEnumAsByte< EObjectTypeQuery > > &ObjectTypes)
 
ENGINE_API void DrawDebugSweptSphere (const UWorld *InWorld, FVector const &Start, FVector const &End, float Radius, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0)
 
ENGINE_API void DrawDebugSweptBox (const UWorld *InWorld, FVector const &Start, FVector const &End, FRotator const &Orientation, FVector const &HalfSize, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0)
 
ENGINE_API void DrawDebugLineTraceSingle (const UWorld *World, const FVector &Start, const FVector &End, EDrawDebugTrace::Type DrawDebugType, bool bHit, const FHitResult &OutHit, FLinearColor TraceColor, FLinearColor TraceHitColor, float DrawTime)
 
ENGINE_API void DrawDebugLineTraceMulti (const UWorld *World, const FVector &Start, const FVector &End, EDrawDebugTrace::Type DrawDebugType, bool bHit, const TArray< FHitResult > &OutHits, FLinearColor TraceColor, FLinearColor TraceHitColor, float DrawTime)
 
ENGINE_API void DrawDebugBoxTraceSingle (const UWorld *World, const FVector &Start, const FVector &End, const FVector HalfSize, const FRotator Orientation, EDrawDebugTrace::Type DrawDebugType, bool bHit, const FHitResult &OutHit, FLinearColor TraceColor, FLinearColor TraceHitColor, float DrawTime)
 
ENGINE_API void DrawDebugBoxTraceMulti (const UWorld *World, const FVector &Start, const FVector &End, const FVector HalfSize, const FRotator Orientation, EDrawDebugTrace::Type DrawDebugType, bool bHit, const TArray< FHitResult > &OutHits, FLinearColor TraceColor, FLinearColor TraceHitColor, float DrawTime)
 
ENGINE_API void DrawDebugSphereTraceSingle (const UWorld *World, const FVector &Start, const FVector &End, float Radius, EDrawDebugTrace::Type DrawDebugType, bool bHit, const FHitResult &OutHit, FLinearColor TraceColor, FLinearColor TraceHitColor, float DrawTime)
 
ENGINE_API void DrawDebugSphereTraceMulti (const UWorld *World, const FVector &Start, const FVector &End, float Radius, EDrawDebugTrace::Type DrawDebugType, bool bHit, const TArray< FHitResult > &OutHits, FLinearColor TraceColor, FLinearColor TraceHitColor, float DrawTime)
 
ENGINE_API void DrawDebugCapsuleTraceSingle (const UWorld *World, const FVector &Start, const FVector &End, float Radius, float HalfHeight, EDrawDebugTrace::Type DrawDebugType, bool bHit, const FHitResult &OutHit, FLinearColor TraceColor, FLinearColor TraceHitColor, float DrawTime)
 
ENGINE_API void DrawDebugCapsuleTraceMulti (const UWorld *World, const FVector &Start, const FVector &End, float Radius, float HalfHeight, EDrawDebugTrace::Type DrawDebugType, bool bHit, const TArray< FHitResult > &OutHits, FLinearColor TraceColor, FLinearColor TraceHitColor, float DrawTime)
 
ENGINE_API void DrawDebugCapsuleTraceSingle (const UWorld *World, const FVector &Start, const FVector &End, float Radius, float HalfHeight, const FRotator &Orientation, EDrawDebugTrace::Type DrawDebugType, bool bHit, const FHitResult &OutHit, FLinearColor TraceColor, FLinearColor TraceHitColor, float DrawTime)
 
ENGINE_API void DrawDebugCapsuleTraceMulti (const UWorld *World, const FVector &Start, const FVector &End, float Radius, float HalfHeight, const FRotator &Orientation, EDrawDebugTrace::Type DrawDebugType, bool bHit, const TArray< FHitResult > &OutHits, FLinearColor TraceColor, FLinearColor TraceHitColor, float DrawTime)
 

Function Documentation

◆ ConfigureCollisionObjectParams()

FCollisionObjectQueryParams ConfigureCollisionObjectParams ( const TArray< TEnumAsByte< EObjectTypeQuery > > &  ObjectTypes)

◆ ConfigureCollisionParams()

FCollisionQueryParams ConfigureCollisionParams ( FName  TraceTag,
bool  bTraceComplex,
const TArray< AActor * > &  ActorsToIgnore,
bool  bIgnoreSelf,
const UObject WorldContextObject 
)

◆ DrawDebugBoxTraceMulti()

ENGINE_API void DrawDebugBoxTraceMulti ( const UWorld World,
const FVector Start,
const FVector End,
const FVector  HalfSize,
const FRotator  Orientation,
EDrawDebugTrace::Type  DrawDebugType,
bool  bHit,
const TArray< FHitResult > &  OutHits,
FLinearColor  TraceColor,
FLinearColor  TraceHitColor,
float  DrawTime 
)

◆ DrawDebugBoxTraceSingle()

ENGINE_API void DrawDebugBoxTraceSingle ( const UWorld World,
const FVector Start,
const FVector End,
const FVector  HalfSize,
const FRotator  Orientation,
EDrawDebugTrace::Type  DrawDebugType,
bool  bHit,
const FHitResult OutHit,
FLinearColor  TraceColor,
FLinearColor  TraceHitColor,
float  DrawTime 
)

◆ DrawDebugCapsuleTraceMulti() [1/2]

ENGINE_API void DrawDebugCapsuleTraceMulti ( const UWorld World,
const FVector Start,
const FVector End,
float  Radius,
float  HalfHeight,
const FRotator Orientation,
EDrawDebugTrace::Type  DrawDebugType,
bool  bHit,
const TArray< FHitResult > &  OutHits,
FLinearColor  TraceColor,
FLinearColor  TraceHitColor,
float  DrawTime 
)

Debug Drawing for multi trace capsules with orientation.

◆ DrawDebugCapsuleTraceMulti() [2/2]

ENGINE_API void DrawDebugCapsuleTraceMulti ( const UWorld World,
const FVector Start,
const FVector End,
float  Radius,
float  HalfHeight,
EDrawDebugTrace::Type  DrawDebugType,
bool  bHit,
const TArray< FHitResult > &  OutHits,
FLinearColor  TraceColor,
FLinearColor  TraceHitColor,
float  DrawTime 
)

Debug Drawing for multi trace capsules using rotation FRotator::ZeroRotator.

◆ DrawDebugCapsuleTraceSingle() [1/2]

ENGINE_API void DrawDebugCapsuleTraceSingle ( const UWorld World,
const FVector Start,
const FVector End,
float  Radius,
float  HalfHeight,
const FRotator Orientation,
EDrawDebugTrace::Type  DrawDebugType,
bool  bHit,
const FHitResult OutHit,
FLinearColor  TraceColor,
FLinearColor  TraceHitColor,
float  DrawTime 
)

Debug Drawing for single trace capsules with orientation.

◆ DrawDebugCapsuleTraceSingle() [2/2]

ENGINE_API void DrawDebugCapsuleTraceSingle ( const UWorld World,
const FVector Start,
const FVector End,
float  Radius,
float  HalfHeight,
EDrawDebugTrace::Type  DrawDebugType,
bool  bHit,
const FHitResult OutHit,
FLinearColor  TraceColor,
FLinearColor  TraceHitColor,
float  DrawTime 
)

Debug Drawing for single trace capsules using rotation FRotator::ZeroRotator.

◆ DrawDebugLineTraceMulti()

ENGINE_API void DrawDebugLineTraceMulti ( const UWorld World,
const FVector Start,
const FVector End,
EDrawDebugTrace::Type  DrawDebugType,
bool  bHit,
const TArray< FHitResult > &  OutHits,
FLinearColor  TraceColor,
FLinearColor  TraceHitColor,
float  DrawTime 
)

◆ DrawDebugLineTraceSingle()

ENGINE_API void DrawDebugLineTraceSingle ( const UWorld World,
const FVector Start,
const FVector End,
EDrawDebugTrace::Type  DrawDebugType,
bool  bHit,
const FHitResult OutHit,
FLinearColor  TraceColor,
FLinearColor  TraceHitColor,
float  DrawTime 
)

◆ DrawDebugSphereTraceMulti()

ENGINE_API void DrawDebugSphereTraceMulti ( const UWorld World,
const FVector Start,
const FVector End,
float  Radius,
EDrawDebugTrace::Type  DrawDebugType,
bool  bHit,
const TArray< FHitResult > &  OutHits,
FLinearColor  TraceColor,
FLinearColor  TraceHitColor,
float  DrawTime 
)

◆ DrawDebugSphereTraceSingle()

ENGINE_API void DrawDebugSphereTraceSingle ( const UWorld World,
const FVector Start,
const FVector End,
float  Radius,
EDrawDebugTrace::Type  DrawDebugType,
bool  bHit,
const FHitResult OutHit,
FLinearColor  TraceColor,
FLinearColor  TraceHitColor,
float  DrawTime 
)

◆ DrawDebugSweptBox()

ENGINE_API void DrawDebugSweptBox ( const UWorld InWorld,
FVector const &  Start,
FVector const &  End,
FRotator const &  Orientation,
FVector const &  HalfSize,
FColor const &  Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0 
)

◆ DrawDebugSweptSphere()

ENGINE_API void DrawDebugSweptSphere ( const UWorld InWorld,
FVector const &  Start,
FVector const &  End,
float  Radius,
FColor const &  Color,
bool  bPersistentLines = false,
float  LifeTime = -1.f,
uint8  DepthPriority = 0 
)