ParticleAttractor
Pulls, pushes or swirls every particle within its radius, from any emitter in the room: a vent drawing in steam, a fan blowing it away, a whirlpool spinning it around a drain.
On this page
Add it
+ Add node → Particle Attractor creates a node with it already on. Already have a node for it? Add component → ParticleAttractorComponent.
From a script
A script on the same node writes these fields by name. ParticleAttractorComponent is the name to pass.
rgs
set_number("ParticleAttractorComponent", "radius", 96.0);
set_number("ParticleAttractorComponent", "strength", 400.0);
set_flag("ParticleAttractorComponent", "enabled", true); Fields
| Field | Script name | Kind | Default | What it does |
|---|---|---|---|---|
| Kind | kind | one of Attract, Repel, Swirl | Attract | Whether it pulls particles in, pushes them away, or spins them around it. |
| Radius | radius | number, at least 0 | 96 | How far it reaches, in world units. |
| Strength | strength | number | 400 | Acceleration at the centre, in units per second squared. |
| Enabled | enabled | checkbox | on | Whether it is acting right now. |