summaryrefslogtreecommitdiffstats
path: root/scene/2d/path_2d.cpp
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-06 18:16:06 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-06 18:16:06 +0000
commita24c38d1a814f5bc4979b99d6652f4bf2f2982c7 (patch)
tree3635c158604917758f663f14f2220ef1a19dfcbb /scene/2d/path_2d.cpp
parentd834789f475d431b10dcaef8804cd75dcd8b47dd (diff)
downloadredot-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.cpp2
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;