Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Strange interpolating behavior when using "AnimationClip.EnsureQuaternionContinuity"

Discussion in 'Animation' started by hwubh, Feb 11, 2023.

  1. hwubh

    hwubh

    Joined:
    Feb 11, 2023
    Posts:
    1
    These days I am trying to develope a simple 3D animation software based Unity. But when I am converting imported animation file into an animationclip, something strange happens once I use "AnimationClip.EnsureQuaternionContinuity" to ensure a better interpolation. It seems it will smooth all curve segments and generate the same curve regardless of the in/out tangent and weight of keyframes. The attached pictures shows a curve if the function is applied or not.

    (P1: Use "AnimationClip.EnsureQuaternionContinuity")
    upload_2023-2-11_17-48-2.png

    (P1: Not use "AnimationClip.EnsureQuaternionContinuity")

    upload_2023-2-11_17-48-29.png

    If anyone knows how the "AnimationClip.EnsureQuaternionContinuity" work? Thank all you guys for your time and helps.