# SplineMesh bug when doing looping

**URL:** <https://forums.unrealengine.com/t/splinemesh-bug-when-doing-looping/295468>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 7, 2014, 5:50am UTC](https://forums.unrealengine.com/t/splinemesh-bug-when-doing-looping/295468 "2014-10-07T05:50:07Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![k.yates](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k.yates/32/733795_2.png) [@k.yates](https://forums.unrealengine.com/u/k.yates)\
**Post date:** [March 31, 2023, 4:14am UTC](https://forums.unrealengine.com/t/splinemesh-bug-when-doing-looping/295468/21 "2023-03-31T04:14:46Z")

</div>

This is still an issue in UE5 and the above fix doesn’t fix the fact that USplineComponent has the wrong rotations on the spline, and using the methods to get rotation at distance will still result in anything using those to be oriented in the wrong direction.

---

<div class="post-metadata">

**Author:** ![Jaffamanj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jaffamanj](https://forums.unrealengine.com/u/Jaffamanj)\
**Post date:** [September 30, 2023, 9:42pm UTC](https://forums.unrealengine.com/t/splinemesh-bug-when-doing-looping/295468/22 "2023-09-30T21:42:38Z")

</div>

This worked for me first try when i remade it in c++! Thanks so much.  
For anyone trying to do something similar, this was my implementation:  
(Runs once per Spline Mesh Component)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/7/7a7c9081605f5e1b0ae96be723fd9c2f8e6b54ee.png)

[Previous page](https://forums.unrealengine.com/t/splinemesh-bug-when-doing-looping/295468.md?page=1)
