Skip to content

Components

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

FieldScript nameKindDefaultWhat it does
Kindkindone of Attract, Repel, SwirlAttractWhether it pulls particles in, pushes them away, or spins them around it.
Radiusradiusnumber, at least 096How far it reaches, in world units.
Strengthstrengthnumber400Acceleration at the centre, in units per second squared.
EnabledenabledcheckboxonWhether it is acting right now.