SpeedOfSoundSq
SpeedOfSoundSq
#Overview
name: SpeedOfSoundSq
The value of this variable can be defined or overridden in .ini config files. 1
.ini config file referencing this setting variable.
It is referenced in 2
C++ source files.
#Summary
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Config/BaseGame.ini:193, section: [/Script/AIModule.AISense_Hearing]
- INI Section:
/Script/AIModule.AISense_Hearing
- Raw value:
0
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/AIModule/Classes/Perception/AISense_Hearing.h:72
Scope (from outer to inner):
file
class class UAISense_Hearing : public UAISense
Source code excerpt:
* when AI hears the sound based on the distance from the source */
UPROPERTY(config)
float SpeedOfSoundSq;
struct FDigestedHearingProperties
{
float HearingRangeSq;
uint8 AffiliationFlags;
#Loc: <Workspace>/Engine/Source/Runtime/AIModule/Private/Perception/AISense_Hearing.cpp:124
Scope (from outer to inner):
file
function float UAISense_Hearing::Update
Source code excerpt:
AIPerception::FListenerMap& ListenersMap = *GetListeners();
UAIPerceptionSystem* PerceptionSys = GetPerceptionSystem();
const float SpeedOfSoundSqScalar = SpeedOfSoundSq > 0.f ? 1.f / SpeedOfSoundSq : 0.f;
for (AIPerception::FListenerMap::TIterator ListenerIt(ListenersMap); ListenerIt; ++ListenerIt)
{
FPerceptionListener& Listener = ListenerIt->Value;
if (Listener.HasSense(GetSenseID()) == false)