UPawnSensingComponent::IsNoiseRelevant

Test whether the noise is loud enough and recent enough to care about.

Windows
MacOS
Linux

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/Perception/PawnSensingComponent.h

Include

#include "Perception/PawnSensingComponent.h"

Source

/Engine/Source/Runtime/AIModule/Private/Perception/PawnSensingComponent.cpp

Syntax

bool IsNoiseRelevant
(
    const APawn & Pawn,
    const UPawnNoiseEmitterComponent & NoiseEmitterComponent,
    bool bSourceWithinNoiseEmitter
) const

Remarks

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss