Distance Curve Modifier generate flat line even in example Lyra start project in UE 5.6

I recently follow an advanced locomotion tutorial and generate the distance curve by using Distance Curve Modifier for the root animation. Here is what I have reproduced in Lyra Starter Project as well:

  1. Download the Lyra starter project from fab.
  2. Find the “MM_Rifle_Jog_Stop” animation and duplicate it to another folder to do the test.
  3. Open the duplicated animation and delete the Distance curve under the “Curves”.
  4. Re-apply the “Distance Curve Modifier” in animation modifiers window.
    Actual result: The curve is a flat straight line.

Expected result: Regenerated distance curve should be as same as the original one in Lyra starter project.

I don’t know which steps or settings i’m missing or it is a possible bug.

5 Likes

I’m having the exact same problem with the same animations. Unfortunately so far I have not found a fix.

1 Like

Same problem with different animations.

same here

I’m having this problem too.

Current workaround solution is generate the animation curves in UE5.5 and migrate the animations to the UE5.6 project. I think it may be a bug from the Animation Modifier Library.

2 Likes

so I’ve tried it with 5.5 and that has the same issue as 5.6, but making the curves in the lyra starter project in 5.5 works fine. So there is something in the lyra start project that is causing the curves to work, hrmm.

The same bug. I have reported to epic

1 Like

It may take a while before an official fix is available. I’ve resolved this issue already. ​Just copy the two C++ files from my repository to your project and compile them. Using EastingDistanceCurve will generate the Distance curve properly.​

4 Likes

Nice work bro!

(post deleted by author)

Thank you! Worked like a charm.

Could you explain in a bit more detail please?

Where exactly should I copy these files? (Does location matter?)

and how to compile it in the engine?

(post deleted by author)

1.Convert the project to a C++ project,.
2.Add the following three modules"AnimationModifiers, AnimationModifierLibrary, AnimationBlueprintLibrary".
3.Delete or backup the folders “Binaries,Intermediate,DerivedDataCache,Saved”.
4.Put the files “.h .cpp” into the folder “Your Project\Source"Your Project Name Folder”“.
5.Right click “Your project name”.uproject,and select ‌"Generate Visual Studio project files‌‌”.
6.Open “Your project name”.sln with visual studio,select “Build\Rebuild Solution”.Wait until it is completed.
7.Now you will see the new option “Easting DistanceCurve” in “Animation Data Modifiers”.

1 Like

Thanks for the reply, unfortunately there I have found there are much more animation modifiers I need to work. So even if I changed up my project, it wouldn’t help me currently. Just going to have to wait for it to be fixed.