ITUR

Point Gravity

Pulls the particles toward a point like a planet: weak far away, stronger as they come close (or pushes them away with a negative Strength).

What it is for

Reach for it when a point should act like a mass: particles far away drift in slowly, those nearby rush in. It reads more physical than an Attractor, whose pull is a soft bubble of a set radius. Typical uses: black hole, planet, a repelling core.

How it works

For each particle the node measures the distance r to Position and asks for a velocity aimed at the point. Its size follows the gravity law softened near the centre: Strength x r / (r^2 + Softening^2)^1.5. Far from the point this is Strength / r^2. Close to it the pull peaks at about 0.7 x Softening from the point, then drops to zero at the point itself, so nothing explodes at the centre. The size is capped by Max Force. A negative Strength gives the same velocity pointing away. Like every force, the result is a wanted velocity that the Particle System follows at its Response: on its own it does not make true orbits.

Connections

Connect Flow to the Flows input of a Particle System. Position can be driven by a Combine XYZ or any vector, Strength by any value node.

Settings

SettingWhat it doesDefault
PositionThe point that attracts, in the space of the system (0, 0, 0 = the system's origin).0, 0, 0
StrengthMass of the point. Higher = faster fall, felt from further away. Negative = the point repels. 0 = no effect.5
SofteningSize of the soft core around the point. The pull is strongest at about 0.7 x Softening from the point and fades to zero at the centre. Small = a sharp, violent centre (the peak grows as 1 / Softening^2); large = a wide, gentle well.1
Max ForceUpper limit of the velocity the node may ask for. Only matters with a small Softening or a high Strength, where the peak would be extreme. Values under 0.1 count as 0.1.25

Outputs

Flow

Tips

See also

AttractorOrbitVortexCollide Sphere