improve ray direction not normalized assertion message

This commit is contained in:
xxSeys1
2024-10-15 21:25:30 +02:00
parent b45f6c1321
commit 703e83cd48

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\nRay Direction: {direction}, Ray Length: {direction.Length}");
}
/// <summary>