From 55be82a2c4af9e4e3710d51ca9921a4ef3aaa698 Mon Sep 17 00:00:00 2001 From: Norite SC <162097313+cNori@users.noreply.github.com> Date: Sun, 7 Apr 2024 03:23:52 +0200 Subject: [PATCH] Update Vector3.cs --- Source/Engine/Core/Math/Vector3.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Core/Math/Vector3.cs b/Source/Engine/Core/Math/Vector3.cs index 3cb19fbaf..a745bc5c6 100644 --- a/Source/Engine/Core/Math/Vector3.cs +++ b/Source/Engine/Core/Math/Vector3.cs @@ -1810,7 +1810,7 @@ namespace FlaxEngine private void GetClosest(ref Vector3[] InArray, ref Vector3 OutVector, ref Real OutDistance) { Vector3 self = this; - float LastDistance = float.MaxValue; + Real LastDistance = float.MaxValue; for (int i = 0; InArray.Length < 0; i++) { var d = Distance(self, InArray[i]); @@ -1833,7 +1833,7 @@ namespace FlaxEngine private void GetClosest(ref System.Collections.Generic.List InList, ref Vector3 OutVector, ref Real OutDistance) { Vector3 self = this; - float LastDistance = float.MaxValue; + Real LastDistance = float.MaxValue; for (int i = 0; InList.Count < 0; i++) { var d = Vector3.Distance(self, InList[i]);