# How do I attach a beam to a specific point?

**URL:** <https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399>\
**Category:** FX\
**Tags:** linetrace, unreal-engine, vector, question\
**Created:** [February 25, 2021, 12:59pm UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399 "2021-02-25T12:59:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Calibians](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Calibians](https://forums.unrealengine.com/u/Calibians)\
**Post date:** [February 25, 2021, 12:59pm UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399/1 "2021-02-25T12:59:36Z")

</div>

Hi. The problem is as follows. I am trying to fix the linetrace at the beginning of the weapon. But when I move up and down and left to right, the beam starts to behave inadequately, which in turn affects the behavior of the dynamic beam. How can this be fixed?

 ![330856-unknown.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/0/b2042ea44dc5ea3672458ab21b26a79f1900885f.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2021, 1:29pm UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399/2 "2021-02-25T13:29:00Z")

</div>

With a beam particle, you can set the start and end points, right?

 ![330850-screenshot-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/b/10b0605eefe8d13dd7f8c976f5f58af7310700f8.jpeg)

---

<div class="post-metadata">

**Author:** ![Calibians](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Calibians](https://forums.unrealengine.com/u/Calibians)\
**Post date:** [February 25, 2021, 2:01pm UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399/3 "2021-02-25T14:01:39Z")

</div>

Sorry. I saw the screenshot, but I didn’t see the message. I didn’t use the standard particle system. I used niagara systems.Will it work with the niagara system?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2021, 7:14pm UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399/4 "2021-02-25T19:14:08Z")

</div>

Yes, but for Niagara you set them as parameters:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/e/adec13af9cd01fc332ebc0481c974e22c762322d.jpeg "Intro to Niagara | Creating Beam Emitter | Unreal Engine Niagara Tutorial") ](https://www.youtube.com/watch?v=EWpm5_6wuhI)

---

<div class="post-metadata">

**Author:** ![Calibians](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Calibians](https://forums.unrealengine.com/u/Calibians)\
**Post date:** [February 25, 2021, 10:57pm UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399/5 "2021-02-25T22:57:16Z")

</div>

Thanks for the link to the video. But that’s not quite it.  
The beam works correctly until I start moving the weapon up and down quickly. It turns out I have the beam working like a whip, and it should go straight all the time, no matter how fast I move it on any axis. Here’s a screenshot to understand more what I mean

 ![330924-screenshot-5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/8/0a84bd4e92ff4da0526ed62db4f9818bcfb98dbd.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 26, 2021, 8:32am UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399/6 "2021-02-26T08:32:01Z")

</div>

That looks like a line trace problem, no?

---

<div class="post-metadata">

**Author:** ![Calibians](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Calibians](https://forums.unrealengine.com/u/Calibians)\
**Post date:** [February 26, 2021, 9:18am UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399/7 "2021-02-26T09:18:05Z")

</div>

Exactly. The exit and position of the beam from the weapon in the correct position. But when moving quickly, the end point of the collision is oriented on the line trace, which, unfortunately, is not correct. And I can’t understand why…  
UPD: It’s more as if the line trace is not rigidly fixed to a certain position, but follows it with some lag.

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [February 26, 2021, 9:23am UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399/8 "2021-02-26T09:23:11Z")

</div>

Where does the linetrace begin?

I would attach an arrow to the gun and have the linetrace originate from there. The endpoint is determined by beam length and the arrow’s forward vector.

---

<div class="post-metadata">

**Author:** ![Calibians](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Calibians](https://forums.unrealengine.com/u/Calibians)\
**Post date:** [February 26, 2021, 9:41am UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399/9 "2021-02-26T09:41:21Z")

</div>

Just the line trace comes out of the arrow. As long as the character and weapon do not start moving in any direction. This is what the character, camera, and weapon link looks like

 ![331001-screenshot-6.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/6/b76e8d9453495027f1cb679c1589e67bd16f085d.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e3997fd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e3997fd1](https://forums.unrealengine.com/u/anonymous_user_e3997fd1)\
**Post date:** [February 11, 2022, 2:05am UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399/10 "2022-02-11T02:05:09Z")

</div>

Maybe late to the party… but try removing Local Space from the Niagara emitter… that seems to be the big problem
