Niagara laser collision

Hello,

I’ve been trying to make a laser using niagara that would stop when hitting a collision, but so far it’s just not working. I’ve watched several tutorials explaining hwo to make a laser with collision, but they didn’t help. I currently have this already :

but for now, the laser endpoint is stuck to the world center, due to the Bem End being at 0;0;0. If I change it, I justend up with a laser that ends at a certain point, without any form of collision. Does anyone know what to do to fix that ?

What do you mean by that?
Are you making some sort of a trigger laser? Or a continuous fire weapon?

It’s a laser pointer. Once triggered it has to stops when hitting a collision, which is what I’m failing to do so far.

Does debug draw line works right?

It does, without any issue. It detects when there’s a collision properly.

Why do you spawn system as Pointer Spawned R, but setting param for NS_Laser?

Sorry for the delayed reply.
I’d say because it affects the laser itself before the pointer. But regardless, changing the variable for the Pointer doesn’t change a thing.

Can you send me ns_laser in pm? I’ll try to remake it to test it out

I don’t really know how to use pms here, but at least I can give you all the parameters for the vfx


(sorry for the poor quality)
It’s a Dynamic Beam, too.
The 2 user parameters have the default value (0;0;0 for BeamEnd, white for Color)

you can upload file to google drive and post link here

There you go

Looks like my UE is older, can’t open file :sweat_smile:
I’ll update it and see what I can do.

My project is under the latest 5.4, yeah.

Found your problem
You are using local space for beamend but giving it world space
go to laser, beam emitter setup, and tick absolute beam end

I changed a few things and started testing other stuff with the laser… The issue I posted at first happened while the laser was set to absolute beam end. Atm if I try it I can move freely the begin point linked to the controller, but the end point is locked at whatever coords there are for the BeamEnd parameter. I still don’t know how to make it move as I want.




works fine for me

Well, it finally worked. All it as missing was actually to put the Index of the select node into Return value. That took way too long just for that. Thanks a lot for the help.