FAudioDevice::GetDistanceSquaredToListener

Sets OutSqDistance to the distance from location to the appropriate listener representation, depending on calling thread.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/AudioDevice.h

Include

#include "AudioDevice.h"

Source

/Engine/Source/Runtime/Engine/Private/AudioDevice.cpp

Syntax

bool GetDistanceSquaredToListener
(
    const FVector & Location,
    int32 ListenerIndex,
    float & OutSqDistance
) const

Remarks

Sets OutSqDistance to the distance from location to the appropriate listener representation, depending on calling thread. Returns true if listener position is valid, false if not (in which case, OutSqDistance is undefined).

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