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

**URL:** <https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648>\
**Category:** Character & Animation\
**Tags:** locomotion, unreal-engine\
**Created:** [June 18, 2025, 2:52pm UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648 "2025-06-18T14:52:53Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![locosoft1986](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@locosoft1986](https://forums.unrealengine.com/u/locosoft1986)\
**Post date:** [June 18, 2025, 2:52pm UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/1 "2025-06-18T14:52:53Z")

</div>

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.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/1/c01ed210a6954fcdb37dc8b8ba21389f5eecc351.jpeg)

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/b/32be4f026771be614c0febff1132329576c8c770.jpeg)

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

---

<div class="post-metadata">

**Author:** ![yanseppo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yanseppo](https://forums.unrealengine.com/u/yanseppo)\
**Post date:** [June 20, 2025, 10:38am UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/2 "2025-06-20T10:38:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Barlog\_M](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/barlog_m/32/913872_2.png) [@Barlog\_M](https://forums.unrealengine.com/u/Barlog_M)\
**Post date:** [June 20, 2025, 4:35pm UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/3 "2025-06-20T16:35:05Z")

</div>

Same problem with different animations.

---

<div class="post-metadata">

**Author:** ![surivdie1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@surivdie1](https://forums.unrealengine.com/u/surivdie1)\
**Post date:** [June 22, 2025, 1:11am UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/4 "2025-06-22T01:11:43Z")

</div>

same here

---

<div class="post-metadata">

**Author:** ![johnmaddux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@johnmaddux](https://forums.unrealengine.com/u/johnmaddux)\
**Post date:** [June 22, 2025, 9:00pm UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/5 "2025-06-22T21:00:29Z")

</div>

I’m having this problem too.

---

<div class="post-metadata">

**Author:** ![locosoft1986](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@locosoft1986](https://forums.unrealengine.com/u/locosoft1986)\
**Post date:** [June 23, 2025, 4:03am UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/6 "2025-06-23T04:03:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![yanseppo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yanseppo](https://forums.unrealengine.com/u/yanseppo)\
**Post date:** [June 24, 2025, 11:38pm UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/7 "2025-06-24T23:38:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Anonymous\_5472bc3a7b0dc9a047b805866e74d64b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_5472bc3a7b0dc9a047b805866e74d64b](https://forums.unrealengine.com/u/Anonymous_5472bc3a7b0dc9a047b805866e74d64b)\
**Post date:** [June 27, 2025, 12:30pm UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/8 "2025-06-27T12:30:09Z")

</div>

The same bug. I have reported to epic

---

<div class="post-metadata">

**Author:** ![Anonymous\_5472bc3a7b0dc9a047b805866e74d64b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_5472bc3a7b0dc9a047b805866e74d64b](https://forums.unrealengine.com/u/Anonymous_5472bc3a7b0dc9a047b805866e74d64b)\
**Post date:** [July 2, 2025, 1:57pm UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/9 "2025-07-02T13:57:39Z")

</div>

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.​

> **[GitHub - superztf/Miscellaneous](https://github.com/superztf/Miscellaneous)**
>
> Contribute to superztf/Miscellaneous development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![locosoft1986](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@locosoft1986](https://forums.unrealengine.com/u/locosoft1986)\
**Post date:** [July 4, 2025, 9:28am UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/10 "2025-07-04T09:28:49Z")

</div>

Nice work bro!

---

<div class="post-metadata">

**Author:** ![StonePaleAle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StonePaleAle](https://forums.unrealengine.com/u/StonePaleAle)\
**Post date:** [July 17, 2025, 2:02am UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/12 "2025-07-17T02:02:04Z")

</div>

Thank you! Worked like a charm.

---

<div class="post-metadata">

**Author:** ![Z3R0K0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Z3R0K0](https://forums.unrealengine.com/u/Z3R0K0)\
**Post date:** [July 29, 2025, 12:44pm UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/13 "2025-07-29T12:44:27Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![LZFTK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LZFTK](https://forums.unrealengine.com/u/LZFTK)\
**Post date:** [July 30, 2025, 2:10am UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/15 "2025-07-30T02:10:12Z")

</div>

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”.

---

<div class="post-metadata">

**Author:** ![Z3R0K0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Z3R0K0](https://forums.unrealengine.com/u/Z3R0K0)\
**Post date:** [July 30, 2025, 7:40pm UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/16 "2025-07-30T19:40:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![yanseppo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yanseppo](https://forums.unrealengine.com/u/yanseppo)\
**Post date:** [August 3, 2025, 10:39am UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/17 "2025-08-03T10:39:04Z")

</div>

> [@LZFTK](#):
>
> AnimationModifiers

when you say add modules, do you mean plugins? I can not find AnimationModifiers, and AnimationModifier.h.

---

<div class="post-metadata">

**Author:** ![Stefax71](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stefax71](https://forums.unrealengine.com/u/Stefax71)\
**Post date:** [August 19, 2025, 6:53am UTC](https://forums.unrealengine.com/t/distance-curve-modifier-generate-flat-line-even-in-example-lyra-start-project-in-ue-5-6/2564648/18 "2025-08-19T06:53:12Z")

</div>

I had the same problem, the bug has been resolved in 5.6.1.
