Ignore invalid VelocityChanged velocity values in audio backend
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "Config.h"
|
||||
#include "Types.h"
|
||||
|
||||
#include "Engine/Core/Math/Vector3.h"
|
||||
#include "Engine/Core/Types/BaseTypes.h"
|
||||
|
||||
/// <summary>
|
||||
@@ -83,7 +85,8 @@ public:
|
||||
|
||||
FORCE_INLINE static void VelocityChanged(const Vector3& velocity)
|
||||
{
|
||||
Instance->Listener_VelocityChanged(velocity);
|
||||
if (!velocity.IsNanOrInfinity())
|
||||
Instance->Listener_VelocityChanged(velocity);
|
||||
}
|
||||
|
||||
FORCE_INLINE static void TransformChanged(const Vector3& position, const Quaternion& orientation)
|
||||
|
||||
Reference in New Issue
Block a user