A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
VRAIPerceptionOverrides.cpp File Reference
#include "Misc/VRAIPerceptionOverrides.h"
#include "EngineDefines.h"
#include "EngineGlobals.h"
#include "CollisionQueryParams.h"
#include "Engine/Engine.h"
#include "AIModule/Classes/AISystem.h"
#include "AIModule/Classes/Perception/AIPerceptionComponent.h"
#include "VisualLogger/VisualLogger.h"
#include "AIModule/Classes/Perception/AISightTargetInterface.h"
#include "AIModule/Classes/Perception/AISenseConfig_Sight.h"
#include "AIModule/Classes/Perception/AIPerceptionSystem.h"
Include dependency graph for VRAIPerceptionOverrides.cpp:

Go to the source code of this file.

Macros

#define DO_SIGHT_VLOGGINGVR   (0 && ENABLE_VISUAL_LOG)
 
#define SIGHT_LOG_LOCATIONVR(...)
 
#define SIGHT_LOG_SEGMENTVR(...)
 

Enumerations

enum class  EForEachResult : uint8 { Break , Continue }
 
enum  EReverseForEachResult : uint8 { UnTouched , Modified }
 

Functions

FORCEINLINE_DEBUGGABLE bool CheckIsTargetInSightPie (const FPerceptionListener &Listener, const UAISense_Sight_VR::FDigestedSightProperties &DigestedProps, const FVector &TargetLocation, const float SightRadiusSq)
 
 DECLARE_CYCLE_STAT (TEXT("Perception Sense: Sight"), STAT_AI_Sense_Sight, STATGROUP_AI)
 
 DECLARE_CYCLE_STAT (TEXT("Perception Sense: Sight, Listener Update"), STAT_AI_Sense_Sight_ListenerUpdate, STATGROUP_AI)
 
 DECLARE_CYCLE_STAT (TEXT("Perception Sense: Sight, Register Target"), STAT_AI_Sense_Sight_RegisterTarget, STATGROUP_AI)
 
 DECLARE_CYCLE_STAT (TEXT("Perception Sense: Sight, Remove By Listener"), STAT_AI_Sense_Sight_RemoveByListener, STATGROUP_AI)
 
 DECLARE_CYCLE_STAT (TEXT("Perception Sense: Sight, Remove To Target"), STAT_AI_Sense_Sight_RemoveToTarget, STATGROUP_AI)
 
 DECLARE_CYCLE_STAT (TEXT("Perception Sense: Sight, Update Sort"), STAT_AI_Sense_Sight_UpdateSort, STATGROUP_AI)
 
 DEFINE_LOG_CATEGORY (LogAIPerceptionVR)
 
template<typename T , class PREDICATE_CLASS >
EForEachResult ForEach (T &Array, const PREDICATE_CLASS &Predicate)
 
template<typename T , class PREDICATE_CLASS >
EReverseForEachResult ReverseForEach (T &Array, const PREDICATE_CLASS &Predicate)
 

Variables

static const int32 DefaultMaxTracesPerTick = 6
 
static const int32 DefaultMinQueriesPerTimeSliceCheck = 40
 

Macro Definition Documentation

◆ DO_SIGHT_VLOGGINGVR

#define DO_SIGHT_VLOGGINGVR   (0 && ENABLE_VISUAL_LOG)

Definition at line 21 of file VRAIPerceptionOverrides.cpp.

◆ SIGHT_LOG_LOCATIONVR

#define SIGHT_LOG_LOCATIONVR ( ...)

Definition at line 28 of file VRAIPerceptionOverrides.cpp.

◆ SIGHT_LOG_SEGMENTVR

#define SIGHT_LOG_SEGMENTVR ( ...)

Definition at line 27 of file VRAIPerceptionOverrides.cpp.

Enumeration Type Documentation

◆ EForEachResult

enum class EForEachResult : uint8
strong
Enumerator
Break 
Continue 

Definition at line 42 of file VRAIPerceptionOverrides.cpp.

◆ EReverseForEachResult

enum EReverseForEachResult : uint8
Enumerator
UnTouched 
Modified 

Definition at line 61 of file VRAIPerceptionOverrides.cpp.

Function Documentation

◆ CheckIsTargetInSightPie()

FORCEINLINE_DEBUGGABLE bool CheckIsTargetInSightPie ( const FPerceptionListener & Listener,
const UAISense_Sight_VR::FDigestedSightProperties & DigestedProps,
const FVector & TargetLocation,
const float SightRadiusSq )

Definition at line 84 of file VRAIPerceptionOverrides.cpp.

Here is the caller graph for this function:

◆ DECLARE_CYCLE_STAT() [1/6]

DECLARE_CYCLE_STAT ( TEXT("Perception Sense: Sight") ,
STAT_AI_Sense_Sight ,
STATGROUP_AI  )

◆ DECLARE_CYCLE_STAT() [2/6]

DECLARE_CYCLE_STAT ( TEXT("Perception Sense: Sight, Listener Update") ,
STAT_AI_Sense_Sight_ListenerUpdate ,
STATGROUP_AI  )

◆ DECLARE_CYCLE_STAT() [3/6]

DECLARE_CYCLE_STAT ( TEXT("Perception Sense: Sight, Register Target") ,
STAT_AI_Sense_Sight_RegisterTarget ,
STATGROUP_AI  )

◆ DECLARE_CYCLE_STAT() [4/6]

DECLARE_CYCLE_STAT ( TEXT("Perception Sense: Sight, Remove By Listener") ,
STAT_AI_Sense_Sight_RemoveByListener ,
STATGROUP_AI  )

◆ DECLARE_CYCLE_STAT() [5/6]

DECLARE_CYCLE_STAT ( TEXT("Perception Sense: Sight, Remove To Target") ,
STAT_AI_Sense_Sight_RemoveToTarget ,
STATGROUP_AI  )

◆ DECLARE_CYCLE_STAT() [6/6]

DECLARE_CYCLE_STAT ( TEXT("Perception Sense: Sight, Update Sort") ,
STAT_AI_Sense_Sight_UpdateSort ,
STATGROUP_AI  )

◆ DEFINE_LOG_CATEGORY()

DEFINE_LOG_CATEGORY ( LogAIPerceptionVR )

◆ ForEach()

template<typename T , class PREDICATE_CLASS >
EForEachResult ForEach ( T & Array,
const PREDICATE_CLASS & Predicate )

Definition at line 49 of file VRAIPerceptionOverrides.cpp.

Here is the caller graph for this function:

◆ ReverseForEach()

template<typename T , class PREDICATE_CLASS >
EReverseForEachResult ReverseForEach ( T & Array,
const PREDICATE_CLASS & Predicate )

Definition at line 68 of file VRAIPerceptionOverrides.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ DefaultMaxTracesPerTick

const int32 DefaultMaxTracesPerTick = 6
static

Definition at line 39 of file VRAIPerceptionOverrides.cpp.

◆ DefaultMinQueriesPerTimeSliceCheck

const int32 DefaultMinQueriesPerTimeSliceCheck = 40
static

Definition at line 40 of file VRAIPerceptionOverrides.cpp.