UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > Struct Template Reference

#include <kDOP.h>

+ Inheritance diagram for TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >:

Public Member Functions

 TkDOPLineCollisionCheck (const FVector4 &InStart, const FVector4 &InEnd, bool bInbFindClosestIntersection, const COLL_DATA_PROVIDER &InCollDataProvider, FkHitResult *InResult)
 
FVector4 GetHitNormal (void)
 
 TkDOPLineCollisionCheck (const FVector4 &InStart, const FVector4 &InEnd, bool bInbFindClosestIntersection, const COLL_DATA_PROVIDER &InCollDataProvider, FkHitResult *InResult)
 
FORCEINLINE FVector4 GetHitNormal (void)
 
- Public Member Functions inherited from TkDOPCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >
 TkDOPCollisionCheck (const DataProviderType &InCollDataProvider)
 
 TkDOPCollisionCheck (const DataProviderType &InCollDataProvider)
 

Public Attributes

FkHitResultResult
 
const FVector4Start
 
const FVector4End
 
const bool bFindClosestIntersection
 
FVector4 LocalStart
 
FVector4 LocalEnd
 
FVector4 LocalDir
 
FVector4 LocalOneOverDir
 
FVector4 LocalHitNormal
 
KDOP_IDX_TYPE HitNodeIndex
 
FVector3SOA StartSOA
 
FVector3SOA EndSOA
 
FVector3SOA DirSOA
 
- Public Attributes inherited from TkDOPCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >
const DataProviderTypeCollDataProvider
 
const TreeTypekDOPTree
 
const kDOPArray< NodeType > & Nodes
 
const kDOPArray< FTriangleSOA > & SOATriangles
 

Additional Inherited Members

- Public Types inherited from TkDOPCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >
typedef COLL_DATA_PROVIDER DataProviderType
 
typedef TkDOPNode< DataProviderType, KDOP_IDX_TYPENodeType
 
typedef TkDOPTree< DataProviderType, KDOP_IDX_TYPETreeType
 
typedef COLL_DATA_PROVIDER DataProviderType
 
typedef TkDOPNode< DataProviderType, KDOP_IDX_TYPENodeType
 
typedef TkDOPTree< DataProviderType, KDOP_IDX_TYPETreeType
 

Detailed Description

template<typename COLL_DATA_PROVIDER, typename KDOP_IDX_TYPE>
struct TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >

This struct holds the information used to do a line check against the kDOP tree. The collision provider gives access to various matrices, vertex data etc. without having to use virtual functions.

Constructor & Destructor Documentation

◆ TkDOPLineCollisionCheck() [1/2]

TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >::TkDOPLineCollisionCheck ( const FVector4 InStart,
const FVector4 InEnd,
bool  bInbFindClosestIntersection,
const COLL_DATA_PROVIDER InCollDataProvider,
FkHitResult InResult 
)
inline

Sets up the FkDOPLineCollisionCheck structure for performing line checks against a kDOPTree. Initializes all of the variables that are used throughout the line check.

Parameters
InStart– The starting point of the trace
InEnd– The ending point of the trace
InbFindClosestIntersection– Whether to stop at the first hit or not
InCollDataProvider– The struct that provides access to mesh/primitive specific data, such as L2W, W2L, Vertices, and so on
InResult– The out param for hit result information

◆ TkDOPLineCollisionCheck() [2/2]

TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >::TkDOPLineCollisionCheck ( const FVector4 InStart,
const FVector4 InEnd,
bool  bInbFindClosestIntersection,
const COLL_DATA_PROVIDER InCollDataProvider,
FkHitResult InResult 
)
inline

Sets up the FkDOPLineCollisionCheck structure for performing line checks against a kDOPTree. Initializes all of the variables that are used throughout the line check.

Parameters
InStart– The starting point of the trace
InEnd– The ending point of the trace
InbFindClosestIntersection– Whether to stop at the first hit or not
InCollDataProvider– The struct that provides access to mesh/primitive specific data, such as L2W, W2L, Vertices, and so on
InResult– The out param for hit result information

Member Function Documentation

◆ GetHitNormal() [1/2]

Transforms the local hit normal into a world space normal using the transpose adjoint and flips the normal if need be

◆ GetHitNormal() [2/2]

Transforms the local hit normal into a world space normal using the transpose adjoint and flips the normal if need be

Member Data Documentation

◆ bFindClosestIntersection

Flags for optimizing a trace

◆ DirSOA

Direction of the line (not normalized, just EndSOA-StartSOA), where each component is replicated into their own vector registers.

◆ End

◆ EndSOA

End of the line, where each component is replicated into their own vector registers.

◆ HitNodeIndex

Index into the kDOP tree's nodes of the node that was hit.

◆ LocalDir

◆ LocalEnd

◆ LocalHitNormal

◆ LocalOneOverDir

◆ LocalStart

◆ Result

Where the collision results get stored

◆ Start

◆ StartSOA

Start of the line, where each component is replicated into their own vector registers.


The documentation for this struct was generated from the following files: