A solid box the particles cannot enter, or a room that keeps them in.
What it is for
For blocks, pillars, steps and screens, or, with Keep Inside, for a tank or a room that contains the simulation. It is exact and needs no object.
How it works
After the particles have moved, each one measures its distance to a box of Size centred on Center, aligned with the axes of the system. A particle closer than Thickness, or inside the box, is pushed back out through the nearest face. 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 box.
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.
Settings
| Setting | What it does | Default |
|---|---|---|
| Center | Middle of the box, in the space of the system. | 0, 0, 0 |
| Size | Full width of the box on X, Y and Z. | 4, 4, 4 |
| 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
- The box cannot be rotated on its own: it follows the axes of the system. For a tilted box, use a cube object with Collide Object.
- Keep Inside turns it into an aquarium: handy to stop a Turbulence from spreading out of frame.
- A very flat box makes a floor of limited size, where a Collide Plane would be endless.