Browse Source

Update tutorials/math/vector_math.rst

Nathan Lovato 4 years ago
parent
commit
b56d20d3a6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      tutorials/math/vector_math.rst

+ 4 - 2
tutorials/math/vector_math.rst

@@ -203,8 +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 undefined value. Though while programming,
-             if using the normalized() function, it will return ``Vector3(0, 0, 0)``
+              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
 ----------
 ----------