diff options
author | Silc Renew <tokage.it.lab@gmail.com> | 2022-12-25 12:50:35 +0900 |
---|---|---|
committer | Silc Renew <tokage.it.lab@gmail.com> | 2022-12-25 18:16:38 +0900 |
commit | 8745c206c449649bf10dc4bdd7cfae9fb92ec993 (patch) | |
tree | 395a2e2ee509ea2f8e796f0104bd115599189f88 /core/math/quaternion.cpp | |
parent | f382a2b59bb9606f958ccaf7be7ac98f45607c9f (diff) |
Fix pingpong with loop wrap is not working
Diffstat (limited to 'core/math/quaternion.cpp')
-rw-r--r-- | core/math/quaternion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/quaternion.cpp b/core/math/quaternion.cpp index 942a0b766e..ce66552c6d 100644 --- a/core/math/quaternion.cpp +++ b/core/math/quaternion.cpp @@ -220,7 +220,7 @@ Quaternion Quaternion::spherical_cubic_interpolate(const Quaternion &p_b, const ln.z = Math::cubic_interpolate(ln_from.z, ln_to.z, ln_pre.z, ln_post.z, p_weight); Quaternion q2 = to_q * ln.exp(); - // To cancel error made by Expmap ambiguity, do blends. + // To cancel error made by Expmap ambiguity, do blending. return q1.slerp(q2, p_weight); } @@ -271,7 +271,7 @@ Quaternion Quaternion::spherical_cubic_interpolate_in_time(const Quaternion &p_b ln.z = Math::cubic_interpolate_in_time(ln_from.z, ln_to.z, ln_pre.z, ln_post.z, p_weight, p_b_t, p_pre_a_t, p_post_b_t); Quaternion q2 = to_q * ln.exp(); - // To cancel error made by Expmap ambiguity, do blends. + // To cancel error made by Expmap ambiguity, do blending. return q1.slerp(q2, p_weight); } |