Browse Source

Merge pull request #4254 from Skyvastern/master

Update vector math doc
Nathan Lovato 4 years ago
parent
commit
cbcfa4b0d2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tutorials/math/vector_math.rst

+ 4 - 1
tutorials/math/vector_math.rst

@@ -203,7 +203,10 @@ by its magnitude. Because this is such a common operation,
 
 
 .. warning:: Because normalization involves dividing by the vector's length,
 .. warning:: Because normalization involves dividing by the vector's length,
              you cannot normalize a vector of length ``0``. Attempting to
              you cannot normalize a vector of length ``0``. Attempting to
-             do so will result in an error.
+              do so would normally result in an error. In GDScript though,
+              trying to call the ``normalized()`` method on a ``Vector2`` or
+              ``Vector3`` of length 0 leaves the value untouched and avoids the
+              error for you.
 
 
 Reflection
 Reflection
 ----------
 ----------