engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Public 属性 | 静态 Public 属性 | 所有成员列表
FCollisionQueryParams结构体 参考

Structure that defines parameters passed into collision function 更多...

#include <CollisionQueryParams.h>

+ 类 FCollisionQueryParams 继承关系图:

Public 类型

typedef TArray< uint32, TInlineAllocator< 4 > > IgnoreActorsArrayType
 TArray typedef of actors to ignore.
 
typedef TArray< uint32, TInlineAllocator< 8 > > IgnoreComponentsArrayType
 TArray typedef of components to ignore.
 

Public 成员函数

void AddIgnoredActor (const AActor *InIgnoreActor)
 Add an actor for this trace to ignore
 
void AddIgnoredActor (const uint32 InIgnoreActorID)
 Add an actor by ID for this trace to ignore
 
void AddIgnoredActors (const TArray< AActor * > &InIgnoreActors)
 Add a collection of actors for this trace to ignore
 
void AddIgnoredActors (const TArray< TWeakObjectPtr< const AActor > > &InIgnoreActors)
 Variant that uses an array of TWeakObjectPtrs
 
void AddIgnoredComponent (const UPrimitiveComponent *InIgnoreComponent)
 Add a component for this trace to ignore
 
void AddIgnoredComponent_LikelyDuplicatedRoot (const UPrimitiveComponent *InIgnoreComponent)
 Special variant that hints that we are likely adding a duplicate of the root component or first ignored component. 更多...
 
void AddIgnoredComponents (const TArray< TWeakObjectPtr< UPrimitiveComponent > > &InIgnoreComponents)
 Variant that uses an array of TWeakObjectPtrs
 
void AddIgnoredComponents (const TArray< UPrimitiveComponent * > &InIgnoreComponents)
 Add a collection of components for this trace to ignore
 
void ClearIgnoredActors ()
 Clears the set of actors to ignore during the trace.
 
void ClearIgnoredComponents ()
 Clears the set of components to ignore during the trace.
 
 FCollisionQueryParams (bool bInTraceComplex)
 DEPRECATED!
Please instead provide a FName parameter when constructing a FCollisionQueryParams object which will use the other constructor. 更多...
 
const IgnoreActorsArrayType & GetIgnoredActors () const
 Returns set of actors to ignore during the trace. 更多...
 
const IgnoreComponentsArrayType & GetIgnoredComponents () const
 Returns set of unique components to ignore during the trace. 更多...
 
void SetNumIgnoredComponents (int32 NewNum)
 Set the number of ignored components in the list. 更多...
 

Public 属性

bool bFindInitialOverlaps
 Whether we want to find out initial overlap or not. 更多...
 
bool bIgnoreBlocks
 Whether to ignore blocking results.
 
bool bIgnoreTouches
 Whether to ignore touch/overlap results.
 
bool bReturnFaceIndex
 Whether we want to return the triangle face index for complex static mesh traces
 
bool bReturnPhysicalMaterial
 Whether we want to include the physical material in the results.
 
bool bSkipNarrowPhase
 Whether to skip narrow phase checks (only for overlaps).
 
bool bTraceComplex
 Whether we should trace against complex collision
 
FMaskFilter IgnoreMask
 Extra filtering done on the query. 更多...
 
EQueryMobilityType MobilityType
 Filters query by mobility types (static vs stationary/movable)
 
FName OwnerTag
 Tag used to indicate an owner for this trace
 
TStatId StatId
 StatId used for profiling individual expensive scene queries
 
FName TraceTag
 Tag used to provide extra information or filtering for debugging of the trace (e.g. 更多...
 

静态 Public 属性

static FCollisionQueryParams DefaultQueryParam
 static variable for default data to be used without reconstructing everytime
 

详细描述

Structure that defines parameters passed into collision function

构造及析构函数说明

◆ FCollisionQueryParams()

FCollisionQueryParams::FCollisionQueryParams ( bool  bInTraceComplex)
inline

DEPRECATED!
Please instead provide a FName parameter when constructing a FCollisionQueryParams object which will use the other constructor.

Providing a single string literal argument, such as TEXT("foo"), instead of an explicit FNAME can cause this constructor to be invoked instead the the other which was likely the programmers intention. This constructor will eventually be deprecated to avoid this potentially ambiguous case.

成员函数说明

◆ AddIgnoredComponent_LikelyDuplicatedRoot()

void FCollisionQueryParams::AddIgnoredComponent_LikelyDuplicatedRoot ( const UPrimitiveComponent *  InIgnoreComponent)

Special variant that hints that we are likely adding a duplicate of the root component or first ignored component.

Helps avoid invalidating the potential uniquess of the IgnoreComponents array.

◆ GetIgnoredActors()

const IgnoreActorsArrayType & FCollisionQueryParams::GetIgnoredActors ( ) const
inline

Returns set of actors to ignore during the trace.

Note that elements are NOT guaranteed to be unique. This is less important for actors since it's less likely that duplicates are added.

◆ GetIgnoredComponents()

const IgnoreComponentsArrayType & FCollisionQueryParams::GetIgnoredComponents ( ) const

Returns set of unique components to ignore during the trace.

Elements are guaranteed to be unique (they are made so internally if they are not already).

◆ SetNumIgnoredComponents()

void FCollisionQueryParams::SetNumIgnoredComponents ( int32  NewNum)

Set the number of ignored components in the list.

Uniqueness is not changed, it operates on the current state (unique or not). Useful for temporarily adding some, then restoring to a previous size. NewNum must be <= number of current components for there to be any effect.

类成员变量说明

◆ bFindInitialOverlaps

bool FCollisionQueryParams::bFindInitialOverlaps

Whether we want to find out initial overlap or not.

If true, it will return if this was initial overlap.

◆ IgnoreMask

FMaskFilter FCollisionQueryParams::IgnoreMask

Extra filtering done on the query.

See declaration for filtering logic

◆ TraceTag

FName FCollisionQueryParams::TraceTag

Tag used to provide extra information or filtering for debugging of the trace (e.g.

Collision Analyzer)


该结构体的文档由以下文件生成: