particles generator with rigid body data

I’d like to realize this image but I tried a script Blender 3D is too slow to play the animation



it is the blend project

https://ufile.io/os6cd

hi, I think you don’t need the particles to rigid bodies script, just add a bunch of spheres and it should work
I modified your geometry, changed gravity and added a force field with a bit of flow, see if the file helps

https://www.dropbox.com/s/hmvjz0wf9op91tm/RB_xyz.blend?dl=1