Parcourir la source

Update tutorials/math/vector_math.rst

Nathan Lovato il y a 5 ans
Parent
commit
b56d20d3a6
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  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,
              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
 ----------