Get the particles of this particle system. Returns the number of particles written to the input particle array.