# vector based beam between two points plus fountain not aligning

**URL:** <https://forums.unrealengine.com/t/vector-based-beam-between-two-points-plus-fountain-not-aligning/1959423>\
**Category:** FX\
**Tags:** unreal-engine, question\
**Created:** [August 2, 2024, 1:46pm UTC](https://forums.unrealengine.com/t/vector-based-beam-between-two-points-plus-fountain-not-aligning/1959423 "2024-08-02T13:46:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![natsuki-tan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@natsuki-tan](https://forums.unrealengine.com/u/natsuki-tan)\
**Post date:** [August 2, 2024, 1:46pm UTC](https://forums.unrealengine.com/t/vector-based-beam-between-two-points-plus-fountain-not-aligning/1959423/1 "2024-08-02T13:46:20Z")

</div>

Hi there^^

I’m pretty new to UE and Niagara and I can’t figure out the solution to my issue:

I’m currently working on a game with puzzle elements, one of them being light nodes with a defines start and end point. the player is supposed to use the extra ones to connect and complete the path between these two points.  
As a visual effect I thought it would be neat to connect the nodes via a beam (static beam) and have some “pixels” run along said beam (currently trying with fountain emitter).  
Since the distance between the nodes may vary I’m using a vector to determine the distance the beam has to travel calling for world location. The beam is working fine with this method; the pixel particles aren’t.  
In the Niagara preview itself everything seems to be working fine, as soon as i view it in the blueprint the pixel effect doesn’t align. They generally move in the same direction; the z axis is off, even though both use the same parameters.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/4/3044ee27a9d2762302a72b2a6588a6cda31eb250.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/2/7a211109de03cd3f4fe1c548b5f4de107c812314.jpeg)

Thank you!!

---

<div class="post-metadata">

**Author:** ![OhBriz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ohbriz/32/466374_2.png) [@OhBriz](https://forums.unrealengine.com/u/OhBriz)\
**Post date:** [August 3, 2024, 9:56am UTC](https://forums.unrealengine.com/t/vector-based-beam-between-two-points-plus-fountain-not-aligning/1959423/2 "2024-08-03T09:56:19Z")

</div>

Is your niagara emitter set to be in local space?  
It looks like your calculated vector doesn’t match the same space of what you have setup in your blueprint
