Eliminating Spline Mesh Twisting at Runtime

Hello Everybody,

I have a spline that I am working with at run time. In order to prevent twisting, that can be seen [here][1], I am updating the Spline Up Direction for my spline meshes at run time. This eliminates twisting completely, but it causes a new problem where the spline meshes become out of sync as you can see in the pictures below.

Pictures of Spline Mesh Desync:

Side Note:
In the pictures above the green lines represent the Spline Up Direction and the static mesh used for the spline meshes was a simple cube. As you can see in the pictures, the spline meshes do not have a smooth transition.

Pictures of Blueprint:

Side Note: The actions in the Blueprint above are being run in the Tick method of my Blueprint.

Main Question:
Does anyone know how to update the Spline Up direction of a spline mesh at run time without causing the desync issue that I have stated above?

Thank you for your time,

Farshooter

It turns out that this solution was only temporary. Twisting still occurs when the spline mesh is bent at certain angles.

Any help is much appreciated.