ITUR

Collide Sphere

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

SettingWhat it doesDefault
CenterMiddle of the sphere, in the space of the system.0, 0, 0
RadiusSize of the sphere.2
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.

Outputs

Collider

Tips

See also

Collide BoxCollide PlaneCollide ObjectPoint Gravity