A solid ball the particles flow around, or a bubble that holds them in.
What it is for
A cheap, exact obstacle with no object to pick: a planet in a stream, a force-field bubble, a round arena. With Kill it becomes a hole that swallows particles; with Keep Inside, a globe that contains the whole cloud.
How it works
After the particles have moved, each one measures its distance to the surface of a sphere of Radius around Center. A particle closer than Thickness, or inside the sphere, is moved back out along the line from the centre. Then the Contact setting decides: Bounce sends back the part of its velocity that goes into the surface (multiplied by Bounce) and removes part of its sliding speed (Friction); Stick sets its velocity to zero; Kill ends its life so it is born again at the emitter. Keep Inside reverses the test: the particles are held within the sphere.
Connections
Connect Collider to the Colliders input of a Particle System (it accepts several colliders). A collider is not a force: it cannot go into Flows. Center and Radius accept links, so the sphere can move or pulse.
Settings
| Setting | What it does | Default |
|---|---|---|
| Center | Middle of the sphere, in the space of the system. | 0, 0, 0 |
| Radius | Size of the sphere. | 2 |
| Bounce | How much of the impact speed is given back when a particle hits the surface (Bounce contact only). 0 = no rebound, the particle slides along the surface; 0.4 = a soft bounce; 1 = it leaves as fast as it arrived; above 1 it gains speed at each hit. | 0.4 |
| Friction | Share of the sliding speed lost at each contact, from 0 to 1 (Bounce contact only). 0 = the particles glide freely along the surface; 1 = they keep no speed along it. | 0.1 |
| Thickness | Distance from the surface at which the particles are stopped, in units of the system. A particle found closer than this is moved back to that distance (or removed with Kill). A larger value keeps a visible gap between the particles and the surface. | 0.02 |
| Contact | What happens to a particle that touches the surface. Bounce: it is put back at the surface and rebounds, using Bounce and Friction. Stick: it is put back at the surface and its speed is set to zero at each contact (forces that push it away can still take it off). Kill: its life ends at once and it is born again at the emitter.
| |
| Keep Inside | Reverses the collider: the particles are held INSIDE the shape instead of being pushed out of it. With Kill, every particle that leaves the shape is removed. |
Outputs
Collider
Tips
- Placed on a Point Gravity or an Attractor with Kill, it removes the particles that reach the centre, so they are born again at the emitter instead of piling up.
- Keep Inside with Bounce 1 and Friction 0 makes a closed arena the particles bounce around in.
- The sphere is not drawn: add a real sphere object at the same place if it must be seen.