ITUR

Collide Object

The particles collide with an object of the scene, or with every mesh of a collection: they bounce on it, stick to it or die on it.

What it is for

For particles that must respect the set: sand running over a statue, smoke stopped by a wall, sparks bouncing on a logo, a cloud held inside a container (Keep Inside). The object can be animated: its moves are followed live.

How it works

The add-on first computes, once and in the background, a 3D map of distances around the object: a grid of Precision cells per side over its bounding box, modifiers included. Until the map is ready the particles do not collide with a newly chosen object; while a shape is recomputed after an edit, its previous map stays in use. At every step, after the particles have moved, each one reads its distance to the surface in that map. A particle closer than Thickness, or inside the object, is pushed back out along the surface. 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. The map is stored in the object's own space, so moving, rotating or scaling the object costs nothing; only a change of its shape starts a new computation.

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. Pick the object or the collection on the node. A Particle System can use at most 8 distance maps in total, Surface Field nodes included.

Settings

SettingWhat it doesDefault
BounceHow 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
FrictionShare 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
ThicknessDistance 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
ContactWhat 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.
  • Bounce - Particles bounce
  • Stick - Particles stop on contact
  • Kill - Particles disappear on contact (then respawn)
Keep InsideReverses 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.
SourceObject: collide with one object. Collection: collide with every mesh, curve, surface, text or metaball of a collection, up to 8, the biggest first.
  • Object - Collide with one object
  • Collection - Collide with every mesh of a collection (up to 8, the biggest first)
PrecisionNumber of cells per side of the distance map, from 8 to 128. Higher = thin parts and small details are kept, but the map takes longer to compute. Details smaller than one cell (the object's size divided by Precision) are lost.
Fill Hollow ShapesSealed cavities inside a closed object count as solid (a glass bottle modelled with an inner wall): particles never end up inside. Turn it off when the particles must live in such a cavity.
ObjectThe object to collide with (mesh, curve, surface, text or metaball). Shown with the Object source.
CollectionThe collection whose objects are colliders. Shown with the Collection source. Objects beyond the 8 biggest are ignored.

Outputs

Collider

Tips

See also

Collide PlaneCollide SphereCollide BoxSurface Field