Download

How to properly calculate the vector at the end of a beam emitter?

Hello folks!

I am am trying to spawn a directional burst at the end of a beam emitter. This is my current setup for getting the position of the last two particles in the beam and getting the direction between them.

However this setup is not working at all and I’m not really sure why. Does anyone have any helpful insights, perhaps there is a much easier way I am missing?

Thanks so much in advance!

You may have to start with the directional vectors of the beam’s particles based on their indices. How you’re doing it is calculating position, and trying to infer direction from the difference between positions, which looks like it should work. So, instead of Position set in the previous and next index values, try get direction or set direction for each of those. Then subtract and multiply if necessary, and get direction again before plugging into the EndParticles Map Set node.

How do I get a specific particles direction? It’s not an attribute I can read

You need to create / set it in the Niagara emitter. And/Or, it may be doable in BP for your beam emitter with this: