Been banging my head against a brick wall with this one, so thought I’d see if anyone could point me in the right direction
I’ve got a Niagara system with two emitters. I need to change the origin of the second emitter along the Z axis. In Cascade it was as simple as updating the Emitter Origin, but can’t for the life of me figure out how to do this in Niagara. I’ve tried picking apart the Expression Example in the Niagara example map, but my lack of coding knowledge (HLSL or otherwise) is proving to be a hinderance…
This is the closest option I could find in the example files - except I don’t want it to move along a sine during update - hoping to set a static offset at spawn.
This was what I came up with - putting the simulation position into a vector, then using an expression to add a value via float 3 (Z axis). Absolutely no experience with HLSL, so I’ve likely got something wrong there. Any suggestions would be greatly appreciated
I was confused by the lack of emitter transform as well when I started with Niagara, but things kind of worked out fine with just adjusting the sphere/box location offset under Particle Spawn. Is there a reason that wouldn’t work for you?
I’m adding a ‘boot up’ effect before the sphere and hologram appear (using a second emitter). I can easily change the position of the sphere, but because I’m caching out the position of the mesh at spawn (and can’t for the life of me figure out how to tell Niagara to offset the mesh starting position either), moving the sphere still leaves the mesh transition in the wrong location. As the sphere and mesh are correctly aligned in the first emitter, thought it would be better to simply move the entire emitter in the Niagara system…
The idea is to add our new offset value to what’s being written as the MeshPosition.
After compiling and saving your changes, you’ll see your new parameter added to the module interface. Type in your offset or hook it up to another parameter, either one should give you the results you’re looking for!