Setting a Shuriken particle system cone angle in code?

Hi

I’m using a single Shuriken particle system for multiple flame throwers (to help performance). Each time I need it to emit a burst, I move the particle system to the desired position and make it emit.

I need the particle system to emit in a cone shape at the angle of each flame thrower.

I cannot work out how to set the angle independently for each flame thrower. Rotating the particle system game object means all particles rotate together.

Is there anyway I can set the angle of the cone each time I want to emit without effecting existing particles?

Thanks for any help!

I think that you need to set Simulation Space to World instead of Local on your particle system’s base properties; this way existing particles won’t be affected by the transform of the emitter once emitted.

Thanks for your tip, but I am already using World space.

Can you post the code you are using to handle the emissions and changes of position?