How to get a Particle Attractor to "destroy" particles

Godot Version

Godot 4.2.2.


I want to have an object that attracts particles and causes them to disappear when they get close enough to the object. Right now, particles are correctly attracted towards the attractor, but just fling through it out the other side. I can’t figure out a way to make the particles disappear when they reach the attractor (which can be at an arbitrary distance and position relative to the emitter).

Is there some way to do this, either with a particle shader or some other technique?

I think you need to put a GPUParticlesCollisionSphere3D etc at the same place as the attractor, and set the ParticleProcessMaterials Collision mode to “Hide on Contact” - I think if you could/were to “destroy” them, then you’d squeeze the same number of particles into a smaller distance.