Merge branch 'xxSeys1-BetterRayNormAssert'

This commit is contained in:
Wojtek Figat
2025-02-01 15:26:25 +01:00

View File

@@ -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 (direction: {direction}, length: {direction.Length})");
}
/// <summary>