Navigation
API > API/Runtime > API/Runtime/Chaos
Stores the results of scene queries. This can be passed around to multiple SQAccelerators and is responsible for sorting the results and pruning based on blocking. IncFlushCount / DecFlushCount is used to ensure any final sort / pruning operation is done when all SQAccelerators are finished. If you are passing this into multiple accelerators you should call IncFlushCount / DecFlushCount yourself as otherwise each accelerator will trigger its own sort / prune.
| Name | FSQHitBuffer |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Interface/SQTypes.h |
| Include Path | #include "Chaos/Interface/SQTypes.h" |
Syntax
template<typename HitType>
class FSQHitBuffer
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSQHitBuffer
(
bool bSingle |
Chaos/Interface/SQTypes.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FSQHitBuffer() |
Chaos/Interface/SQTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AcceleratorDepth | int32 | Chaos/Interface/SQTypes.h | ||
| bHasBlockingHit | bool | Chaos/Interface/SQTypes.h | ||
| bSingleResult | bool | Chaos/Interface/SQTypes.h | ||
| CurrentBlockingHit | HitType | Chaos/Interface/SQTypes.h | ||
| Hits | TArray< HitType, TInlineAllocator< 128 > > | Chaos/Interface/SQTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddTouchingHit
(
const HitType& InTouchingHit |
Chaos/Interface/SQTypes.h | ||
void DecFlushCount() |
Chaos/Interface/SQTypes.h | ||
const HitType * GetBlock () |
Chaos/Interface/SQTypes.h | ||
HitType * GetBlock () |
Chaos/Interface/SQTypes.h | ||
const HitType * GetCurrentHit() |
Chaos/Interface/SQTypes.h | ||
const HitType * GetHits () |
Chaos/Interface/SQTypes.h | ||
HitType * GetHits () |
Chaos/Interface/SQTypes.h | ||
int32 GetNumHits() |
Chaos/Interface/SQTypes.h | ||
bool HasBlockingHit() |
Chaos/Interface/SQTypes.h | ||
bool HasHit() |
Chaos/Interface/SQTypes.h | ||
void IncFlushCount() |
Called. | Chaos/Interface/SQTypes.h | |
void InsertHit
(
const HitType& Hit, |
Does not do any distance verification. This is up to the SQ code to manage | Chaos/Interface/SQTypes.h | |
void SetBlockingHit
(
const HitType& InBlockingHit |
Chaos/Interface/SQTypes.h | ||
bool WantsSingleResult() |
Chaos/Interface/SQTypes.h |