diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-12-06 18:16:06 +0000 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-12-06 18:16:06 +0000 |
commit | a24c38d1a814f5bc4979b99d6652f4bf2f2982c7 (patch) | |
tree | 3635c158604917758f663f14f2220ef1a19dfcbb /scene/2d/path_2d.cpp | |
parent | d834789f475d431b10dcaef8804cd75dcd8b47dd (diff) | |
download | redot-engine-a24c38d1a814f5bc4979b99d6652f4bf2f2982c7.tar.gz |
Rename Vector2.tangent() to Vector2.orthogonal()
Diffstat (limited to 'scene/2d/path_2d.cpp')
-rw-r--r-- | scene/2d/path_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/path_2d.cpp b/scene/2d/path_2d.cpp index f40a993423..fca7475e1e 100644 --- a/scene/2d/path_2d.cpp +++ b/scene/2d/path_2d.cpp @@ -200,7 +200,7 @@ void PathFollow2D::_update_transform() { tangent_to_curve = (ahead_pos - pos).normalized(); } - Vector2 normal_of_curve = -tangent_to_curve.tangent(); + Vector2 normal_of_curve = -tangent_to_curve.orthogonal(); pos += tangent_to_curve * h_offset; pos += normal_of_curve * v_offset; |