From 703e83cd484a9e8bbb439040509af6d5d62ec5f3 Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Tue, 15 Oct 2024 21:25:30 +0200 Subject: [PATCH] improve ray direction not normalized assertion message --- Source/Engine/Core/Math/Ray.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Core/Math/Ray.cs b/Source/Engine/Core/Math/Ray.cs index 6dc1c8814..afd8242ff 100644 --- a/Source/Engine/Core/Math/Ray.cs +++ b/Source/Engine/Core/Math/Ray.cs @@ -78,7 +78,7 @@ namespace FlaxEngine { Position = position; Direction = direction; - Assert.IsTrue(Direction.IsNormalized, "The Ray Direction was not normalized"); + Assert.IsTrue(Direction.IsNormalized, $"The Ray Direction was not normalized\nRay Direction: {direction}, Ray Length: {direction.Length}"); } ///