Merge branch 'BetterRayNormAssert' of https://github.com/xxSeys1/FlaxEngine into xxSeys1-BetterRayNormAssert
This commit is contained in:
@@ -78,7 +78,7 @@ namespace FlaxEngine
|
|||||||
{
|
{
|
||||||
Position = position;
|
Position = position;
|
||||||
Direction = direction;
|
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>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user