diff --git a/Source/Engine/Core/Math/Quaternion.cs b/Source/Engine/Core/Math/Quaternion.cs index fb763154e..a3aa0732b 100644 --- a/Source/Engine/Core/Math/Quaternion.cs +++ b/Source/Engine/Core/Math/Quaternion.cs @@ -1041,10 +1041,8 @@ namespace FlaxEngine /// The forward direction. Direction to orient towards. /// Up direction. Constrains y axis orientation to a plane this vector lies on. This rule might be broken if forward and up direction are nearly parallel. /// The calculated quaternion. - public static Quaternion LookRotation(Vector3 forward, Vector3 up = null) + public static Quaternion LookRotation(Vector3 forward, Vector3 up) { - if(up == null) - up = Vector3.Up; LookRotation(ref forward, ref up, out var result); return result; }