TkDOPLineCollisionCheck

This struct holds the information used to do a line check against the kDOP tree.

Windows
MacOS
Linux

Inheritance Hierarchy

TkDOPCollisionCheck

TkDOPCollisionCheck

TkDOPLineCollisionCheck

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/kDOP.h

Include

#include "kDOP.h"

Syntax

template<typename COLL_DATA_PROVIDER, typename KDOP_IDX_TYPE>
struct TkDOPLineCollisionCheck :
    public TkDOPCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >,
    public TkDOPCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >

Remarks

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.

Variables

Name Description

Public variable

const bool

 

bFindClosestIntersection

Flags for optimizing a trace

Public variable

FVector3SOA

 

DirSOA

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

Public variable

const FVector4 ...

 

End

Public variable

FVector3SOA

 

EndSOA

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

Public variable

KDOP_IDX_TYPE

 

HitNodeIndex

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

Public variable

FVector4

 

LocalDir

Public variable

FVector4

 

LocalEnd

Public variable

FVector4

 

LocalHitNormal

Normal in local space which gets transformed to world at the very end.

Public variable

FVector4

 

LocalOneOverDir

Public variable

FVector4

 

LocalStart

Locally calculated vectors.

Public variable

FkHitResult ...

 

Result

Where the collision results get stored

Public variable

const FVector4 ...

 

Start

Constant input vars.

Public variable

FVector3SOA

 

StartSOA

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

Constructors

Name Description

Public function

TkDOPLineCollisionCheck

(
    const FVector4& InStart,
    const FVector4& InEnd,
    bool bInbFindClosestIntersection,
    const COLL_DATA_PROVIDER& InCollDa...,
    FkHitResult* InResult
)

Sets up the FkDOPLineCollisionCheck structure for performing line checks against a kDOPTree.

Public function

TkDOPLineCollisionCheck

(
    const FVector4& InStart,
    const FVector4& InEnd,
    bool bInbFindClosestIntersection,
    const COLL_DATA_PROVIDER& InCollDa...,
    FkHitResult* InResult
)

Sets up the FkDOPLineCollisionCheck structure for performing line checks against a kDOPTree.

Functions

Name Description

Public function

FVector4

 

GetHitNormal()

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

Public function

FVector4

 

GetHitNormal()

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

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