# Cable component render

**URL:** <https://forums.unrealengine.com/t/cable-component-render/479616>\
**Category:** Rendering\
**Tags:** cable, unreal-engine, Rendering, question\
**Created:** [March 1, 2021, 6:11pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616 "2021-03-01T18:11:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soleniah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Post date:** [March 1, 2021, 6:11pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/1 "2021-03-01T18:11:58Z")

</div>

Hello there. I add a cable component to my gun. The only issue is that I dont like that kind of “roughness” as shown. I upload the render options too. Any ideas of how can I make the cable more “static” ?

 ![331236-cable.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/9/c690f19c42c2a956dc5e6302fa1ce5b2b7179010.png)

 ![331237-opt.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/b/b0be87f650ba72ee567a5484b2051099737892a0.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 1, 2021, 6:26pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/2 "2021-03-01T18:26:26Z")

</div>

> The only issue is that I dont like  
> that kind of “roughness” as shown.

Could you clarify what you mean by roughness? Do you mean that it’s blurry where the barrel is?

---

<div class="post-metadata">

**Author:** ![Soleniah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Post date:** [March 1, 2021, 6:30pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/3 "2021-03-01T18:30:10Z")

</div>

Sorry for my bad english. Exactly I want the cable to be shown without trembling

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 1, 2021, 6:37pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/4 "2021-03-01T18:37:47Z")

</div>

Does it look the same when you set length to 1? Do you adjust the length when you fire it?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 1, 2021, 6:39pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/5 "2021-03-01T18:39:40Z")

</div>

And you definitely need sides to be min 3; 2 would be a flat plane.

---

<div class="post-metadata">

**Author:** ![Soleniah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Post date:** [March 1, 2021, 6:50pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/6 "2021-03-01T18:50:03Z")

</div>

Of cource. It 's obvisously better (scr1) but i need something like scr2. This happens only if the cable collides to a very close surface

 ![331238-scr1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/b/26be9a608bb76edfe7871a978be05d7260e25f9b.png)

![331239-scr2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/b/25b6a04631cfc8c017c503e803269d06c2aef5da.png)

---

<div class="post-metadata">

**Author:** ![Soleniah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Post date:** [March 1, 2021, 6:52pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/7 "2021-03-01T18:52:06Z")

</div>

So it 's trembling while I 'm on air

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 1, 2021, 6:58pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/8 "2021-03-01T18:58:15Z")

</div>

So we have a length of at least 1 and min 3 sides, right? Can we see the part of script where you attach it to the start location? How is it done? Just a trace and you feed it the resulting location vector?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 1, 2021, 7:02pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/9 "2021-03-01T19:02:36Z")

</div>

But hold on. Shouldn’t you attach the component itself to the Muzzle and the end of the cable to the hit target location? What am I missing? Is this supposed to be like a grapple? I guess you’re attaching _start_ somewhere, right?

---

<div class="post-metadata">

**Author:** ![Soleniah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Post date:** [March 1, 2021, 7:17pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/10 "2021-03-01T19:17:02Z")

</div>

Here is my code. Yeah I 've attached it to the muzzle of the gun. The strange thing is that the END of the cable is on the muzzle and the START on the line trace hit. I caught it like that because in viewport if I change the rope 's location, it 's getting bigger (scr5 and scr6) . You can also see in the screenshot of the question, in cable options says “attach END to socket name”. And I jump to location with the cable, not grabbing things  
![alt text].

 ![331251-scr4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/3/5133f29d831f2f716a465ef61ad6da646b0492e8.png)

 ![331252-scr5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/a/adaa502feee14bd6c425d92582392ab0107653c2.jpeg)

 ![331253-scr6.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/f/73fda07a764864e069a78b3b7e8057e978b6cbcc.png)

 ![331255-scr3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/d/b8d41371c8485361f8854a8f59ddb8da42862e38.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 1, 2021, 9:05pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/11 "2021-03-01T21:05:39Z")

</div>

This is what you’re after, right?

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/1/561c9cd4232f459a16b19df437ebe662ffa2611a.gif)](https://gyazo.com/e5def6b93377bf094c4a904b7547f8e4)

---

<div class="post-metadata">

**Author:** ![Soleniah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Post date:** [March 1, 2021, 9:23pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/12 "2021-03-01T21:23:11Z")

</div>

exactly!!!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 1, 2021, 9:23pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/13 "2021-03-01T21:23:20Z")

</div>

Consider the following:

- the cable component is attached to the Muzzle socket

 ![331249-cabletomuzzle.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/1/301a4e24659c9733a48ea8987e2d8795465bddb0.jpeg)

- end of the cable is attached to scene component - I called it Cable Anchor:

 ![331262-anchor.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/e/f1e8455d0740a793c49ab48cd8826636c46161cb.jpeg)

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/5/6d5c462242e8f40c68cf819c4428f567ac902355.gif)](https://gyazo.com/eeeb05848f8bfcb0343260d1e1b5c60b)

Here’s my timeline:

 ![331250-timeline.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/e/e1e71f94ec44faa8da864830d045d94404673711.jpeg)

We shoot the Anchor and the cable end is already attached to this component:

 ![331261-firegrapple.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/1/ea1b25da9e179267ae7c07f80db2949e0b3369a8.jpeg)

- when you work with timelines, prepare data before it starts; otherwise you’ll be interpolating twice
- and to get rid of motion blur:

 ![331263-blur.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/9/2d9d8933dd018960c2ea0f5c32bdef2e26580810.jpeg)

---

<div class="post-metadata">

**Author:** ![Soleniah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Post date:** [March 1, 2021, 9:56pm UTC](https://forums.unrealengine.com/t/cable-component-render/479616/14 "2021-03-01T21:56:31Z")

</div>

perfect man! Thanks a lot for your help
