Applying Outside Direction to Particles

I’m building a top-down scrolling game and would like to be able to move individual particles along with the map’s scrolling movement.

An example would be a ParticleSystem attached to a tank. The particles would emit from the tank as it moves around but since the parent of the system is the tank, the particles emit and then follow the tank around rather than following the scroll of the map. Changing the simulation space to World doesn’t work because while the map is scrolling, the camera is in a fixed position with the tiles being rather than the camera scrolling around the world space.

I think the easiest solution would be to modify the transform of each individual particle every update with the direction the map is scrolling but I can’t figure out how to gain access to the individual particle’s transforms.

Any help would be greatly appreciated. Thanks!

Figured it out.

    public ParticleSystem particle;
    ParticleSystem.Particle[] particles;

	void Start () 
        particles = new ParticleSystem.Particle[particle.maxParticles];
	void Update () 

//Get Particles out of Particle system and into your array.
int numParticlesAlive = particle.GetParticles(particles);

        for(int i = 0; i < numParticlesAlive; i++)
        { modify particles in whatever way you need }

//put modified particles back into particle system.
particle.SetParticles(particles, numParticlesAlive);