Module |
|
Header |
/Engine/Source/Runtime/AIModule/Classes/Perception/PawnSensingComponent.h |
Include |
#include "Perception/PawnSensingComponent.h" |
Source |
/Engine/Source/Runtime/AIModule/Private/Perception/PawnSensingComponent.cpp |
bool IsNoiseRelevant
(
const APawn & Pawn,
const UPawnNoiseEmitterComponent & NoiseEmitterComponent,
bool bSourceWithinNoiseEmitter
) const
Test whether the noise is loud enough and recent enough to care about. bSourceWithinNoiseEmitter is true iff the noise was made by the pawn itself or within close proximity (its collision volume). Otherwise the noise was made at significant distance from the pawn.