Merge remote-tracking branch 'origin/master' into 1.6

This commit is contained in:
Wojtek Figat
2023-04-17 13:18:08 +02:00
39 changed files with 954 additions and 362 deletions

View File

@@ -305,7 +305,7 @@ namespace FlaxEngine
public void Normalize()
{
float length = Length;
if (!Mathf.IsZero(length))
if (length >= Mathf.Epsilon)
{
float inverse = 1.0f / length;
X *= inverse;