Additional cleanup

Cleaned up some additional stuff that I found
This commit is contained in:
W2.Wizard
2021-02-21 18:17:35 +01:00
parent 8b3fc9842d
commit 35b687bf3d
21 changed files with 142 additions and 151 deletions

View File

@@ -254,7 +254,7 @@ namespace FlaxEngine
/// <returns>Whether the two objects intersected.</returns>
public bool Intersects(ref Ray ray)
{
return CollisionsHelper.RayIntersectsPlane(ref ray, ref this, out float distance);
return CollisionsHelper.RayIntersectsPlane(ref ray, ref this, out float _);
}
/// <summary>
@@ -488,7 +488,6 @@ namespace FlaxEngine
float x = -plane.Normal.X;
float y = -plane.Normal.Y;
float z = -plane.Normal.Z;
float d = -plane.D;
result.M11 = x * light.X + dot;
result.M21 = y * light.X;
@@ -802,7 +801,7 @@ namespace FlaxEngine
if (planes == null)
throw new ArgumentNullException(nameof(planes));
Matrix.Invert(ref transformation, out Matrix inverse);
Matrix.Invert(ref transformation, out _);
for (var i = 0; i < planes.Length; ++i)
Transform(ref planes[i], ref transformation, out planes[i]);