diff options
author | Raul Santos <raulsntos@gmail.com> | 2021-08-07 12:39:34 +0200 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2021-08-07 12:39:34 +0200 |
commit | 18f7acf611a4a2adccac36fa8a611b5b630ddd36 (patch) | |
tree | a728d57cc523da75249e6414f0fad03563b9af11 | |
parent | cd68ef9ed08579ba0a73a57264f16611ceb7a2a4 (diff) |
Fix Path3D initial forward calculation
-rw-r--r-- | scene/3d/path_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/path_3d.cpp b/scene/3d/path_3d.cpp index 490cf5fe67..589135710f 100644 --- a/scene/3d/path_3d.cpp +++ b/scene/3d/path_3d.cpp @@ -120,7 +120,7 @@ void PathFollow3D::_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) { |