# Animating ISMs attached to a Cable Component

**URL:** <https://forums.unrealengine.com/t/animating-isms-attached-to-a-cable-component/2649047>\
**Category:** Programming & Scripting\
**Tags:** cable, unreal-engine, question, Blueprint\
**Created:** [August 21, 2025, 10:42am UTC](https://forums.unrealengine.com/t/animating-isms-attached-to-a-cable-component/2649047 "2025-08-21T10:42:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex.pillar1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alex.pillar1/32/488240_2.png) [@alex.pillar1](https://forums.unrealengine.com/u/alex.pillar1)\
**Post date:** [August 21, 2025, 10:42am UTC](https://forums.unrealengine.com/t/animating-isms-attached-to-a-cable-component/2649047/1 "2025-08-21T10:42:59Z")

</div>

![UnrealEditor_HqaHIyJtc5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/c/c9cc73234fa594bfd2a19cc191e4fc0eb8f7b64f.gif) ![UnrealEditor_DPFKT5Ephb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/1/061a1d097928578f70b495e43a7d2138bcaf5bb9.gif)

Hi to all,

Can anyone offer any suggestions on how to fix this roll offset? At the mid-point the flag is perfectly aligned with the cable component along all three axes, including the sag. As it sways side-to-side, it goes off-kilter by a few degrees along Z, and it also tilts front to rear along Y. Here’s what I’m working with:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/e/c8ee9803f53e76d077da34e2a7516c5c3f0b72b3.jpeg)

Thanks for taking the time to look.

-Alex

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [August 21, 2025, 11:47am UTC](https://forums.unrealengine.com/t/animating-isms-attached-to-a-cable-component/2649047/2 "2025-08-21T11:47:40Z")

</div>

“I just need the correct combination” case 🙂

I take some time to go over it and here is some that MAYBE the culprit;

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/1/a11d336d69836530963b099e2678b3f9997d677f.jpeg)

- Vectors are right at first glance, UPxRight maybe better normalise again to be sure as first try.
- You can maybe use MakeRotFromXZ
- OR Maybe **there is a problem with the up being not truly perpendicular to forward** so maybe you can try something like this

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/1/2b1507e5f00498f76f0cdc2cf60f700df19a0f90.png)

---

<div class="post-metadata">

**Author:** ![alex.pillar1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alex.pillar1/32/488240_2.png) [@alex.pillar1](https://forums.unrealengine.com/u/alex.pillar1)\
**Post date:** [August 21, 2025, 10:07pm UTC](https://forums.unrealengine.com/t/animating-isms-attached-to-a-cable-component/2649047/3 "2025-08-21T22:07:24Z")

</div>

@RedGrimnir Thanks so much, I’ll check this out over the weekend.

---

<div class="post-metadata">

**Author:** ![alex.pillar1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alex.pillar1/32/488240_2.png) [@alex.pillar1](https://forums.unrealengine.com/u/alex.pillar1)\
**Post date:** [August 22, 2025, 10:25pm UTC](https://forums.unrealengine.com/t/animating-isms-attached-to-a-cable-component/2649047/4 "2025-08-22T22:25:41Z")

</div>

@RedGrimnir I believe I’ve done justice to your proposal, but unfortunately, no change. Did I integrate this correctly? The only thing I had to change was 1.0 → -1.0 on UpNominal, otherwise the flags are inverted, sitting on top of the cable. I doubt this is core to the problem.

 ![{A44ED59F-6BF7-4342-ADE9-08A523397D62}](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/9/b09db9a90fb91d97772ad961e94fa84c2291ca21.jpeg)

I also tried the simpler solutions, but they all produce same/similar result.

Many thanks,

Alex

---

<div class="post-metadata">

**Author:** ![alex.pillar1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alex.pillar1/32/488240_2.png) [@alex.pillar1](https://forums.unrealengine.com/u/alex.pillar1)\
**Post date:** [August 22, 2025, 11:06pm UTC](https://forums.unrealengine.com/t/animating-isms-attached-to-a-cable-component/2649047/5 "2025-08-22T23:06:58Z")

</div>

I solved it! Finding “the correct combination” required a different approach. I wanted to try and offset the unwanted rotation and this would need to be relative to the SINE roll function. Splitting the Forward Vector, I trialed subtracting randomly from each axis before creating the final Roll Rotator - of course it was the last one I tested that worked! 🤦‍♂️. Feed the Twist Amplitude into this offset and “hey presto!”

 ![{BE3C5F8C-C4F7-4945-A5BB-44E653295F84}](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/2/d82b2337ffb90eec0385234f97e61b6200205abd.png)

---

<div class="post-metadata">

**Author:** ![alex.pillar1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alex.pillar1/32/488240_2.png) [@alex.pillar1](https://forums.unrealengine.com/u/alex.pillar1)\
**Post date:** [August 23, 2025, 1:04am UTC](https://forums.unrealengine.com/t/animating-isms-attached-to-a-cable-component/2649047/6 "2025-08-23T01:04:27Z")

</div>

I don’t know what’s going on here - my previous post indicated “solved”, but after a quick tidy-up of the node spaghetti it “unresolved”… after some hair-tearing and finally removing my “solution”, it’s now working according to this logic:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/f/95f09d7239c77bca28d9f97080f9d1fb61c1b623.jpeg)

Thanks to @RedGrimnir for the assist.

![UnrealEditor_Y0Sv01PzPi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/d/20dfab9b141455b64cbf9d29d586d2e94fe67669.gif)

![UnrealEditor_YGUXRgitvZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/c/49ccc719a1b00bde98eae9fd6fc47b3065611e53.gif)

---

<div class="post-metadata">

**Author:** ![Dasay2605](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dasay2605](https://forums.unrealengine.com/u/Dasay2605)\
**Post date:** [August 24, 2025, 1:43am UTC](https://forums.unrealengine.com/t/animating-isms-attached-to-a-cable-component/2649047/7 "2025-08-24T01:43:14Z")

</div>

The logic can be simplified to the following form:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/9/789e38126e5c4b399babfbda13d101c268609d70.png)

This may not work for your particular setup as I don’t know what static meshes you used as flags, so you may end up with rotated flags.

Here are some changes I made compared to your solution:

1. The logic on `BeginPlay` can be simplified to just creating the instances and that’s it. You won’t notice their first position anyway, since the `EventTick` will almost instantly override it.
2. You don’t have to use quaternions directly. If you want to do a multiplication, `Combine Rotation` will do it for you. It takes rotators **A** and **B** , converts them to quaternions, multiplies them (effectively doing `quat(B)*quat(A)`, so you may need to swap the inputs), and converts the result back to the rotator.
3. You can find the base rotation much more easily by directly converting the vector to a rotator using `RotationFromXVector`. Sometimes you can use `MakeRotFrom..` nodes. This includes nodes like `MakeRotFromXY`, so you don’t have to calculate the last axis yourself.
4. When calculating the twist angle, you do the following:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/7/7a7d18ad8251b45dfea9ee6d8dd71ac2a1238c3b.png)  
It looks like you wrote this logic just to make sure that `TwistWaveLength` will have an effect up to 1, and any higher number will have the same effect as 1. This is very non-obvious logic. You can simply go to the variable properties and set the limit directly there:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/f/15f53700dea5363bf3cf2419b2b3f646c7578f24.png)
5. The last thing is not that important and is usually unnoticeable, but if the cable consists of a small number of samples and forms a U-shaped curve, you may notice the problem, which I illustrated in the image below:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/7/0d7306ad0952999c288cb674d979938d5afb6ef4.jpeg)  
When calculating the direction vector at a point, you make the following calculation: `NextParticleLocation - CurrentParticleLocation` which results in the **red** arrows you see in the image above. To get the **green** direction, you can add two segments directions (or find the average between the two vectors). I did it in the following way:

```auto
Norm(NextParticleLocation - CurrentParticleLocation) + Norm(CurrentParticleLocation - LastParticleLocation) 

```

Again, this can be not necessary if you have a very detailed straight cable, but it can be done to get the mathematically expected direction.

I hope this was at least somewhat clear. I know you’ve already solved your problem yourself, but I thought you wouldn’t mind a slightly simplified solution. If anything remains unclear, I can explain in more detail.
