classref: Sync with current master branch (8a6c1e8)

This commit is contained in:
Godot Organization
2024-06-22 03:20:34 +00:00
parent 424f8c090a
commit 9ce85882b9
29 changed files with 559 additions and 90 deletions
+1 -1
View File
@@ -626,7 +626,7 @@ Returns the distance between this vector and ``to``.
Returns the dot product of this vector and ``with``. This can be used to compare the angle between two vectors. For example, this can be used to determine whether an enemy is facing the player.
The dot product will be ``0`` for a straight angle (90 degrees), greater than 0 for angles narrower than 90 degrees and lower than 0 for angles wider than 90 degrees.
The dot product will be ``0`` for a right angle (90 degrees), greater than 0 for angles narrower than 90 degrees and lower than 0 for angles wider than 90 degrees.
When using unit (normalized) vectors, the result will always be between ``-1.0`` (180 degree angle) when the vectors are facing opposite directions, and ``1.0`` (0 degree angle) when the vectors are aligned.