Hi, sorry for my bad English. I’m very new to UE5 and I’m making a ball pit simulation using niagara system (with PBD) and trying to make the particles follow the mouse. not click or hit anything, just follow the mouse cursor when i move it around the screen. like attract to it.
I tried using deproject screen to world, so I get mouse position, make vector2d, then deproject. then i take world direction * 1000 and add to world origin to get a location in the world. then I send that location into niagara with a “Set Niagara Variable Vector3” and the variable is called User.MousePosition.
in the niagara system I have a user vector parameter called MousePosition and i use it in a Set Position module in particle spawn (now it’s 0,0,0). but when i move mouse nothing happens.
here is the blueprint i have right now and how my scene looks like:
is something wrong with my nodes? For this I don’t want to do hit result or trace, just follow mouse without clicking or touching anything. would love to hear all your thoughts.
thanks!