ITUR

Particle Attraction

The particles attract each other: the cloud pulls itself into clusters, webs, strands and swarms.

What it is for

Organic structures that build themselves: living webs and membranes, clusters that orbit and merge, schools and murmurations. Reach for it when the shape should come from the particles themselves and not from a field you place.

How it works

Before each simulation step, about 400,000 particles of the system are counted into a 3D grid that covers the Area, so the cost does not grow with the particle count. Two blurred copies of this grid are made: a fine one (about one cell) and a wide one (the width of Reach). Each particle is then moved towards the denser parts of the wide copy (Strength), pushed back where the fine copy is crowded (Repulsion), and can take the average motion of its neighbours (Swarm). Spin adds a sideways motion across the pull; Inertia turns the whole into a pull with momentum, like gravity. Particles outside the Area feel nothing. Only one Particle Attraction acts per Particle System: if two feed the same system, only one of them acts and the Diagnostic names the one that is ignored.

Connections

Connect Flow to the Flows input of a Particle System, with or without other forces. The Density output (0 to 1) goes to the system's Attribute input; set the colour of Appearance to Attribute to colour the cores of the clusters apart from the loose particles.

Settings

SettingWhat it doesDefault
StrengthPull towards the denser parts of the cloud: the speed of the gathering, which never exceeds Strength. Higher = the clusters and strands form faster and hold tighter.1
ReachHow far the pull is felt, in units. Small = fine webs and many small clusters; large = a few big masses. The grid limits the detail: one cell is Area divided by Grid, and a Reach under about two cells gives nothing finer.1.5
RepulsionA pressure that grows with crowding, at the scale of one grid cell: the clusters keep a body instead of collapsing into points. More = looser, wider clusters; 0 = the particles pile up.0.5
SwarmThe particles take on the average motion of their neighbours within Reach (0 to 0.95): the cloud moves as a school or a murmuration instead of each particle going its own way.0
Inertia0 to 0.98. Turns that share of the attraction into an acceleration: the particles fall towards the clusters, overshoot and orbit; clusters circle each other and merge. It also weakens the system's Response by the same share, so every other force of the system acts more slowly too. 0 = plain velocities.0
SpinSideways motion across the pull, in proportion to it. The spin axis changes slowly through space, so neighbouring clusters turn different ways. With Inertia it is what turns falls into orbits. Negative = the other way.0
AreaSize of the cube in which the particles attract each other. Particles outside it feel nothing. A compact Area that fits the cloud gives finer detail, since the grid is spread over it.
CenterCentre of the Area, in the system's space. Shown and used only when Follow the Cloud is off.
Follow the CloudOn: the Area glides after the middle of the cloud, so a cloud emitted away from the origin or a swarm on the move never leaves it. With Inertia, the overall drift of the cloud is also taken off, so it stays in frame. Off: the Area stays at Center.
GridCells per side of the grid: 32 (fastest, broad clusters), 48 (default) or 64 (finer clusters, a little heavier).
  • 32 - Fastest: broad clusters
  • 48 - Default
  • 64 - Finer clusters, a little heavier
Keep InsideOn: near the edges of the Area the particles are turned back towards the middle, along a sphere inside the cube, so a swarm turns round instead of leaving. Off: the edges are open and the particles that leave are no longer attracted.

Outputs

Flow, Density

Tips

See also

AttractorPoint GravityFilamentsAppearance