diff options
| author | Tomasz Chabora <kobewi4e@gmail.com> | 2020-10-25 13:24:08 +0100 |
|---|---|---|
| committer | kobewi <kobewi4e@gmail.com> | 2021-11-09 16:59:58 +0100 |
| commit | 606cfa9a47a945eefa6e4f2cf64599af9f0157ab (patch) | |
| tree | bee69371af7a8728e5c02a7635720c56cf76ab77 /core | |
| parent | eb98fd94421b124a5848d7ee6c7ead4337222c6c (diff) | |
| download | redot-engine-606cfa9a47a945eefa6e4f2cf64599af9f0157ab.tar.gz | |
Fix Vector2.angle_to_point() being reversed
Diffstat (limited to 'core')
| -rw-r--r-- | core/math/vector2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/vector2.cpp b/core/math/vector2.cpp index 6259bdead0..1d3f93848e 100644 --- a/core/math/vector2.cpp +++ b/core/math/vector2.cpp @@ -79,7 +79,7 @@ real_t Vector2::angle_to(const Vector2 &p_vector2) const { } real_t Vector2::angle_to_point(const Vector2 &p_vector2) const { - return (*this - p_vector2).angle(); + return (p_vector2 - *this).angle(); } real_t Vector2::dot(const Vector2 &p_other) const { |
