From 62f2ccb9426fa1e394d3cd1395e31cf172c1e1eb Mon Sep 17 00:00:00 2001 From: stefnotch Date: Mon, 1 Feb 2021 22:40:19 +0100 Subject: [PATCH] Fix conversion to degrees in Vector3.Angle --- Source/Engine/Core/Math/Vector3.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Core/Math/Vector3.cs b/Source/Engine/Core/Math/Vector3.cs index db27cf8ed..a57fcb224 100644 --- a/Source/Engine/Core/Math/Vector3.cs +++ b/Source/Engine/Core/Math/Vector3.cs @@ -1221,7 +1221,7 @@ namespace FlaxEngine float dot = Mathf.Clamp(Dot(from.Normalized, to.Normalized), -1F, 1F); if (Mathf.Abs(dot) > (1F - Mathf.Epsilon)) return dot > 0F ? 0F : 180F; - return Mathf.Acos(dot) * Mathf.DegreesToRadians; + return Mathf.Acos(dot) * Mathf.RadiansToDegrees; } ///