From f38abd593dbf9870c5f1d760225d085ccd286ff8 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Sat, 7 Aug 2021 12:40:14 +0200 Subject: [PATCH] Fix Path3D initial forward calculation (cherry picked from commit 102ec1042b629058b9db2fc29d67b65fb387af8a) --- scene/3d/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/path.cpp b/scene/3d/path.cpp index 2ae3897bb01..eb8ecb62fa2 100644 --- a/scene/3d/path.cpp +++ b/scene/3d/path.cpp @@ -128,7 +128,7 @@ void PathFollow::_update_transform(bool p_update_xyz_rot) { // will be replaced by "Vector3(h_offset, v_offset, 0)" where it was formerly used if (rotation_mode == ROTATION_ORIENTED) { - Vector3 forward = c->interpolate_baked(o_next, cubic); + Vector3 forward = c->interpolate_baked(o_next, cubic) - pos; // Try with the previous position if (forward.length_squared() < CMP_EPSILON2) {